summaryrefslogtreecommitdiffstats
path: root/virt/kvm/arm/arch_timer.c
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@inktank.com>2013-09-30 17:09:54 -0700
committerJosh Durgin <josh.durgin@inktank.com>2014-06-10 18:09:25 -0700
commit77f33c03739697d01c2e730e4c2610424059ceaf (patch)
treeef743e8e3760b1c8f0db3a12f4b97d9102c65d44 /virt/kvm/arm/arch_timer.c
parent131fd9f6fc89ad2cc993f80664d18ca49d6f8483 (diff)
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 <josh.durgin@inktank.com> Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'virt/kvm/arm/arch_timer.c')
0 files changed, 0 insertions, 0 deletions