]> 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>
Wed, 3 Aug 2011 00:43:43 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Aug 2011 00:43:43 +0000 (10:43 +1000)
commit383f8790c2094cc26ed16776a0874a6718ef2efb
tree5bc60e72d24da4993ef234d65a4aa46c3d4606a6
parent3318dee955a4e7fadd8ffd28fcb18d91b873551c
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