block: use bio_{wouldblock,io}_error in direct_make_request
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Mon, 9 Mar 2020 21:41:34 +0000 (22:41 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Mar 2020 13:42:54 +0000 (07:42 -0600)
commit35ed78b32cbbb6499b82e7a3a6769fa14e4b3c92
treea57ae1336d1f9b040471d6dca1772ac0f6f1ef85
parent0d72031820a710c82fde4ed61352ff2a4217e6dd
block: use bio_{wouldblock,io}_error in direct_make_request

Use the two functions to simplify code.

Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c