aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorJunichi Nomura <[email protected]>2015-10-01 08:31:51 +0000
committerMike Snitzer <[email protected]>2015-10-01 14:40:20 +0000
commit2a708cff93f1845b9239bc7d6310aef54e716c6a (patch)
treef44436bb8bc6f700ab1ea8d042c505ad2910a428 /drivers/fpga/fpga-mgr.c
parentLinux 4.3-rc3 (diff)
downloadkernel-2a708cff93f1845b9239bc7d6310aef54e716c6a.tar.gz
kernel-2a708cff93f1845b9239bc7d6310aef54e716c6a.zip
dm: fix AB-BA deadlock in __dm_destroy()
__dm_destroy() takes io_barrier SRCU lock (dm_get_live_table) and suspend_lock in reverse order. Doing so can cause AB-BA deadlock: __dm_destroy dm_swap_table --------------------------------------------------- mutex_lock(suspend_lock) dm_get_live_table() srcu_read_lock(io_barrier) dm_sync_table() synchronize_srcu(io_barrier) .. waiting for dm_put_live_table() mutex_lock(suspend_lock) .. waiting for suspend_lock Fix this by taking the locks in proper order. Signed-off-by: Jun'ichi Nomura <[email protected]> Fixes: ab7c7bb6f4ab ("dm: hold suspend_lock while suspending device during device deletion") Acked-by: Mikulas Patocka <[email protected]> Signed-off-by: Mike Snitzer <[email protected]> Cc: [email protected]
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions