git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
131fd9f
)
rbd: move calls that may sleep out of spin lock range
author
Josh Durgin
<josh.durgin@inktank.com>
Tue, 1 Oct 2013 00:09:54 +0000
(17:09 -0700)
committer
Josh Durgin
<josh.durgin@inktank.com>
Wed, 11 Jun 2014 01:09:25 +0000
(18:09 -0700)
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>
drivers/block/rbd.c
patch
|
blob
|
history
diff --cc
drivers/block/rbd.c
Simple merge