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:
fec3ff5
)
um: switch to using blk_queue_write_cache()
author
Jens Axboe
<axboe@fb.com>
Wed, 30 Mar 2016 16:19:17 +0000
(10:19 -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>
arch/um/drivers/ubd_kern.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/um/drivers/ubd_kern.c
b/arch/um/drivers/ubd_kern.c
index 39ba20755e035635a35967561ff49c3fb7a7ac95..17e96dc29596ccefd8120a01a9f6c20ff6f17886 100644
(file)
--- a/
arch/um/drivers/ubd_kern.c
+++ b/
arch/um/drivers/ubd_kern.c
@@
-862,7
+862,7
@@
static int ubd_add(int n, char **error_out)
goto out;
}
ubd_dev->queue->queuedata = ubd_dev;
- blk_queue_
flush(ubd_dev->queue, REQ_FLUSH
);
+ blk_queue_
write_cache(ubd_dev->queue, true, false
);
blk_queue_max_segments(ubd_dev->queue, MAX_SG);
err = ubd_disk_register(UBD_MAJOR, ubd_dev->size, n, &ubd_gendisk[n]);