projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d71d9ae
)
umem: use op_is_sync to check for synchronous requests
author
Christoph Hellwig
<hch@lst.de>
Tue, 1 Nov 2016 13:40:04 +0000
(07:40 -0600)
committer
Jens Axboe
<axboe@fb.com>
Tue, 1 Nov 2016 15:43:26 +0000
(09:43 -0600)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/umem.c
patch
|
blob
|
history
diff --git
a/drivers/block/umem.c
b/drivers/block/umem.c
index
be90e15
..
46f4c71
100644
(file)
--- 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);