]> git.karo-electronics.de Git - karo-tx-linux.git/commit
DM has always advertised both REQ_FLUSH and REQ_FUA flush capabilities
authorMike Snitzer <snitzer@redhat.com>
Mon, 1 Aug 2011 00:51:11 +0000 (10:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 1 Aug 2011 00:51:11 +0000 (10:51 +1000)
commitc43f5faaf60472c1414d5e7a126cee2b73a2fd1e
treefaf6c18dab0e17040f3415bd178956643dd016a8
parent5711d1dfeef7842223e2259396f4a1728977e43f
DM has always advertised both REQ_FLUSH and REQ_FUA flush capabilities
regardless of whether or not a given DM device's underlying devices
also advertised a need for them.

Block's flush-merge changes from 2.6.39 have proven to be more costly
for DM devices.  Performance regressions have been reported even when
DM's underlying devices do not advertise that they have a write cache.

Fix the performance regressions by configuring a DM device's flushing
capabilities based on those of the underlying devices' capabilities.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-table.c
drivers/md/dm.c