diff options
| author | Hao Zhang <zhanghao1@kylinos.cn> | 2026-09-12 00:07:33 +0800 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-09-30 14:23:58 +0200 |
| commit | 99909b74fb34174b22965c397782cd1a370517ff (patch) | |
| tree | db468da745aed2a6d8476377115fac01740b5ac4 /tools/lib/python/kdoc/python_version.py | |
| parent | bec2fa7bdf06d6523e40e05fd93117b0c1c8bd30 (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 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
