block: keep q_usage_counter in atomic mode after del_gendisk

Don't switch back to percpu mode to avoid the double RCU grace period
when tearing down SCSI devices.  After removing the disk only passthrough
commands can be send anyway.

Suggested-by: Ming Lei <>
Signed-off-by: Christoph Hellwig <>
Tested-by: Darrick J. Wong <>
Tested-by: Yi Zhang <>
Signed-off-by: Jens Axboe <>
3 files changed