aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2021-11-09 07:11:42 +0000
committerJens Axboe <[email protected]>2021-11-09 15:14:27 +0000
commitd2b9f12b0f7cf95c43f5fd4a18688d958d39e423 (patch)
treee9d3011d2181c8e700e39ae51bb5bafdf2f0ec63 /drivers/fpga/fpga-bridge.c
parentblk-mq: add one API for waiting until quiesce is done (diff)
downloadkernel-d2b9f12b0f7cf95c43f5fd4a18688d958d39e423.tar.gz
kernel-d2b9f12b0f7cf95c43f5fd4a18688d958d39e423.zip
scsi: avoid to quiesce sdev->request_queue two times
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 to be balanced. blk_mq_quiesce_queue() calls blk_mq_quiesce_queue_nowait() for updating quiesce depth and marking the flag, then scsi_internal_device_block() calls blk_mq_quiesce_queue_nowait() two times actually. Fix the double quiesce and keep quiesce and unquiesce balanced. 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