summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-11-01 07:40:04 -0600
committerJens Axboe <axboe@fb.com>2016-11-01 09:43:26 -0600
commit03ea4afa67566a3c4e83c0fde8bf0c48f16ac1a3 (patch)
treea1828546d23de4565057f9addf853aae419d3414
parentd71d9ae14a0942fae519d890a743b12679e3d153 (diff)
downloadlwn-03ea4afa67566a3c4e83c0fde8bf0c48f16ac1a3.tar.gz
lwn-03ea4afa67566a3c4e83c0fde8bf0c48f16ac1a3.zip
umem: use op_is_sync to check for synchronous requests
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--drivers/block/umem.c2
1 files changed, 1 insertions, 1 deletions
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);