commit | a52cc685753568e5bcbe762586c2bfbe7175255e | [log] [tgz] |
---|---|---|
author | Ilya Dryomov <idryomov@gmail.com> | Wed Feb 12 15:08:39 2020 +0100 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon Mar 30 12:42:40 2020 +0200 |
tree | a1550825ed173615dad5067d470e6b6fa1f5d29b | |
parent | 78b42a871a654face984c844b43c777d66adb1fe [diff] |
rbd: acquire header_rwsem just once in rbd_queue_workfn() Currently header_rwsem is acquired twice: once in rbd_dev_parent_get() when the image request is being created and then in rbd_queue_workfn() to capture mapping_size and snapc. Introduce rbd_img_capture_header() and move image request allocation so that header_rwsem can be acquired just once. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>