[Devel] [PATCH RH9 0/5] dm-qcow2: Move qcow2_get_img_xxx() out of mutex

Kirill Tkhai ktkhai at virtuozzo.com
Thu Nov 25 19:05:31 MSK 2021


The plan is to leave only merge under ctl_mutex. The rest of messages
handlers should be unlocked. 
This patch does this for qcow2_get_img_xxx() handlers.

---

Kirill Tkhai (5):
      dm-qcow2: Return empty string instead of -ENOENT in qcow2_get_fd()
      dm-qcow2: Extract similar code from qcow2_get_img_name() and qcow2_get_img_fd()
      dm_qcow2: Kill nr_images and introduce img_id instead
      dm-qcow2: Make qcow2_get_img() use qcow2_ref_inc()
      dm-qcow2: Move qcow2_get_img_name() and qcow2_get_img_fd() out of mutex


 drivers/md/dm-qcow2-cmd.c    |  103 ++++++++++++++++++++++++------------------
 drivers/md/dm-qcow2-target.c |    7 +--
 drivers/md/dm-qcow2.h        |    3 -
 3 files changed, 63 insertions(+), 50 deletions(-)

--
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>



More information about the Devel mailing list