Propagate io->dir flags when submitting flush bio in bottom volume
When dir is ignored, and 0 is passed instead, each flush request will appear as READ request, which is not supported by some block device drivers. Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
e7b6d4ce6f
commit
a185a6e595
@ -235,7 +235,7 @@ static void block_dev_submit_flush(struct ocf_io *io)
|
|||||||
bio->bi_private = io;
|
bio->bi_private = io;
|
||||||
|
|
||||||
atomic_inc(&blkio->rq_remaning);
|
atomic_inc(&blkio->rq_remaning);
|
||||||
cas_submit_bio(CAS_SET_FLUSH(0), bio);
|
cas_submit_bio(CAS_SET_FLUSH(io->dir), bio);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
cas_bd_io_end(io, blkio->error);
|
cas_bd_io_end(io, blkio->error);
|
||||||
|
Loading…
Reference in New Issue
Block a user