projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c88cb0
)
drbd: switch to using blk_queue_write_cache()
author
Jens Axboe
<
[email protected]
>
Wed, 30 Mar 2016 16:09:01 +0000
(10:09 -0600)
committer
Jens Axboe
<
[email protected]
>
Tue, 12 Apr 2016 22:00:39 +0000
(16:00 -0600)
Signed-off-by: Jens Axboe <
[email protected]
>
Reviewed-by: Christoph Hellwig <
[email protected]
>
drivers/block/drbd/drbd_main.c
patch
|
blob
|
history
diff --git
a/drivers/block/drbd/drbd_main.c
b/drivers/block/drbd/drbd_main.c
index fa209773d494a4efd6857aa4ef4437ee11636250..2ba1494b279997cb730f29c9e4600dcd8ac3f68e 100644
(file)
--- a/
drivers/block/drbd/drbd_main.c
+++ b/
drivers/block/drbd/drbd_main.c
@@
-2761,7
+2761,7
@@
enum drbd_ret_code drbd_create_device(struct drbd_config_context *adm_ctx, unsig
q->backing_dev_info.congested_data = device;
blk_queue_make_request(q, drbd_make_request);
- blk_queue_
flush(q, REQ_FLUSH | REQ_FUA
);
+ blk_queue_
write_cache(q, true, true
);
/* Setting the max_hw_sectors to an odd value of 8kibyte here
This triggers a max_bio_size message upon first attach or connect */
blk_queue_max_hw_sectors(q, DRBD_MAX_BIO_SIZE_SAFE >> 8);