diff options
| author | 2025-11-08 23:44:26 -0800 | |
|---|---|---|
| committer | 2025-11-11 07:51:08 -0700 | |
| commit | 86afb1cdc28f4332c6e0a1937244e0a80d4d63b1 (patch) | |
| tree | 4ab3421c54f5f1e7f6894b4a727cfd700e2d8836 /scripts/Makefile.thinlto | |
| parent | nbd: defer config unlock in nbd_genl_connect (diff) | |
block: add lockdep to queue_limits_commit_update()
queue_limits_commit_update() expects q->limits_lock to be held by
the caller (via queue_limits_start_update()).
The API pattern is:
lim = queue_limits_start_update(q); /* acquires lock */
/* modify lim */
queue_limits_commit_update(q, &lim); /* releases lock */
OR
queue_limits_commit_update_frozen(q, &lim);
lim = queue_limits_start_update(q); /* acquires lock */
queue_limits_commit_update(q, &lim); /* releases lock */
Add lockdep_assert_held() to report incorrect API usage.
Signed-off-by: Chaitanya Kulkarni <ckulkarnilinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
