Skip to content
Commit a52cc685 authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

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: default avatarIlya Dryomov <idryomov@gmail.com>
parent 78b42a87
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment