From: Christoph Hellwig Date: Tue, 1 Nov 2016 13:40:04 +0000 (-0600) Subject: umem: use op_is_sync to check for synchronous requests X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=03ea4afa67566a3c4e83c0fde8bf0c48f16ac1a3;p=linux-beck.git umem: use op_is_sync to check for synchronous requests Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe --- diff --git a/drivers/block/umem.c b/drivers/block/umem.c index be90e15854ed..46f4c719fed9 100644 --- a/drivers/block/umem.c +++ b/drivers/block/umem.c @@ -535,7 +535,7 @@ static blk_qc_t mm_make_request(struct request_queue *q, struct bio *bio) *card->biotail = bio; bio->bi_next = NULL; card->biotail = &bio->bi_next; - if (bio->bi_opf & REQ_SYNC || !mm_check_plugged(card)) + if (op_is_sync(bio->bi_opf) || !mm_check_plugged(card)) activate(card); spin_unlock_irq(&card->lock);