Enabling support for FLUSH and FUA flags
authorvenkat <venkat@fsl.cs.sunysb.edu>
Wed, 21 Dec 2016 23:09:03 +0000 (18:09 -0500)
committervenkat <venkat@fsl.cs.sunysb.edu>
Wed, 21 Dec 2016 23:25:07 +0000 (18:25 -0500)
commit35e754589f37c4bcb8a00a33d291d0a6b2fc4591
tree2b4dc54da5d8b3134520324efa2348a3ecaddd58
parent9cf7bf6609008a1f1f4c1af3b6a39afe985ecd7d
Enabling support for FLUSH and FUA flags

In order device-mapper target to support FLUSH and FUA requests
one has to set flush_supported flag on the target instance.
This commit does it.

Then dmdedup needs to flush underlying data and metadata devices
when FLUSH and FUA flags are set on a request. This was already done
by the previous code. However, sometimes we see empty write
requests the sole goal of which is to flush the data. This patch
handles this scenario correctly.
drivers/md/dm-dedup-target.c