From 77f33c03739697d01c2e730e4c2610424059ceaf Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Mon, 30 Sep 2013 17:09:54 -0700 Subject: [PATCH] rbd: move calls that may sleep out of spin lock range get_user() and set_disk_ro() may allocate memory, leading to a potential deadlock if theye are called while a spin lock is held. Move the acquisition and release of rbd_dev->lock from rbd_ioctl() into rbd_ioctl_set_ro(), so it can occur between get_user() and set_disk_ro(). Signed-off-by: Josh Durgin Reviewed-by: Alex Elder --- Reading git-format-patch failed