diff options
| author | 2026-09-12 00:07:33 +0800 | |
|---|---|---|
| committer | 2026-09-30 14:23:58 +0200 | |
| commit | 99909b74fb34174b22965c397782cd1a370517ff (patch) | |
| tree | db468da745aed2a6d8476377115fac01740b5ac4 /scripts/Makefile.thinlto | |
| parent | dm-verity: add DM_VERITY_VERIFY_ROOTHASH_SIG_FORCE (diff) | |
dm thin: Remove unnecessary locking from pool_map()
pool_map() takes pool->lock only while setting the bio's data device.
The pool target's data_dev is initialized when the target is
constructed and is not changed afterwards. The device-mapper target
remains alive while its map callback is running, so pool->lock is not
needed to protect data_dev.
Remove the unnecessary locking. This also avoids holding pool->lock
across bio_set_dev(), which may perform a blkcg lookup and acquire the
request queue's queue_lock.
Signed-off-by: Hao Zhang <zhanghao1@kylinos.cn>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
