]> git.baikalelectronics.ru Git - kernel.git/commit
block: call submit_bio_checks under q_usage_counter
authorChristoph Hellwig <hch@lst.de>
Wed, 29 Sep 2021 07:12:37 +0000 (09:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 16 Oct 2021 03:02:36 +0000 (21:02 -0600)
commit643f56aac381740c360cbda3a65a5ff21d71794c
treee0455ea51eda57ff5858f9f3acc506eeb485232b
parent0bf62cb373128d3bbfbb9f2707e1e7eefd2521a6
block: call submit_bio_checks under q_usage_counter

Ensure all bios check the current values of the queue under freeze
protection, i.e. to make sure the zero capacity set by del_gendisk
is actually seen before dispatching to the driver.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210929071241.934472-2-hch@lst.de
Tested-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c