aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2021-11-09 07:11:43 +0000
committerJens Axboe <[email protected]>2021-11-09 15:14:27 +0000
commit93542fbfa7b726d053c01a9399577c03968c4f6b (patch)
tree8c51175536212413500e304da07ad81fb1ec19b8 /drivers/fpga/fpga-bridge.c
parentscsi: avoid to quiesce sdev->request_queue two times (diff)
downloadkernel-93542fbfa7b726d053c01a9399577c03968c4f6b.tar.gz
kernel-93542fbfa7b726d053c01a9399577c03968c4f6b.zip
scsi: make sure that request queue queiesce and unquiesce balanced
For fixing queue quiesce race between driver and block layer(elevator switch, update nr_requests, ...), we need to support concurrent quiesce and unquiesce, which requires the two call balanced. It isn't easy to audit that in all scsi drivers, especially the two may be called from different contexts, so do it in scsi core with one per-device atomic variable to balance quiesce and unquiesce. Reported-by: Yi Zhang <[email protected]> Fixes: e70feb8b3e68 ("blk-mq: support concurrent queue quiesce/unquiesce") Signed-off-by: Ming Lei <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions