OSDN Git Service

block: refator submit_bio_noacct
authorChristoph Hellwig <hch@lst.de>
Wed, 1 Jul 2020 08:59:45 +0000 (10:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 13:27:24 +0000 (07:27 -0600)
commit566acf2daaf2048c692abfc2342ab4a49b59ee40
tree5c98fe70b250bbb2164bee3eb9e09545089ed65d
parented00aabd5eb9fb44d6aff1173234a2e911b9fead
block: refator submit_bio_noacct

Split out a __submit_bio_noacct helper for the actual de-recursion
algorithm, and simplify the loop by using a continue when we can't
enter the queue for a bio.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c