projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17fe95f
)
nbd: switch to using blk_queue_write_cache()
author
Jens Axboe
<axboe@fb.com>
Wed, 30 Mar 2016 16:10:53 +0000
(10:10 -0600)
committer
Jens Axboe
<axboe@fb.com>
Tue, 12 Apr 2016 22:00:39 +0000
(16:00 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/block/nbd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/nbd.c
b/drivers/block/nbd.c
index 08afbc7a2bb87171a2c4255c74705d39dd7a2b94..31e73a7a40f20eb6de0337c79aade131c4b70df4 100644
(file)
--- a/
drivers/block/nbd.c
+++ b/
drivers/block/nbd.c
@@
-693,9
+693,9
@@
static void nbd_parse_flags(struct nbd_device *nbd, struct block_device *bdev)
if (nbd->flags & NBD_FLAG_SEND_TRIM)
queue_flag_set_unlocked(QUEUE_FLAG_DISCARD, nbd->disk->queue);
if (nbd->flags & NBD_FLAG_SEND_FLUSH)
- blk_queue_
flush(nbd->disk->queue, REQ_FLUSH
);
+ blk_queue_
write_cache(nbd->disk->queue, true, false
);
else
- blk_queue_
flush(nbd->disk->queue, 0
);
+ blk_queue_
write_cache(nbd->disk->queue, false, false
);
}
static int nbd_dev_dbg_init(struct nbd_device *nbd);