Skip to content
Commit c2a9c7ab authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

btrfs: check if the device is flush capable



The block layer call chain from submit_bio will check if the write cache
is enabled for the given queue before submitting the flush. This will
add a code to fail fast if its not.

Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ updated changelog to reflect current code stat, blkdev_issue_flush is
  not used yet ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 13e88e15
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment