]> git.baikalelectronics.ru Git - kernel.git/commit
block: add a bio_queue_enter helper
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Apr 2020 11:27:56 +0000 (13:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 29 Apr 2020 15:33:26 +0000 (09:33 -0600)
commitf5045930214873ff7f247d8c139a0bd034176f05
tree1f947dd0e52fb57f9af81b3c6559119147ce934a
parente685e4ac3f3e33a32f17aef2e8a58f2380fe794e
block: add a bio_queue_enter helper

Add a little helper that passes the right nowait flag to blk_queue_enter
based on the bio flag, and terminates the bio with the right error code
if entering the queue fails.

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