diff options
| author | Josh Durgin <[email protected]> | 2013-10-01 00:09:54 +0000 |
|---|---|---|
| committer | Josh Durgin <[email protected]> | 2014-06-11 01:09:25 +0000 |
| commit | 77f33c03739697d01c2e730e4c2610424059ceaf (patch) | |
| tree | ef743e8e3760b1c8f0db3a12f4b97d9102c65d44 /tools/perf/scripts/python/netdev-times.py | |
| parent | rbd: add ioctl for rbd (diff) | |
| download | kernel-77f33c03739697d01c2e730e4c2610424059ceaf.tar.gz kernel-77f33c03739697d01c2e730e4c2610424059ceaf.zip | |
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 <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
