]> git.baikalelectronics.ru Git - kernel.git/commit
md: Call blk_queue_flush() to establish flush/fua support
authorDarrick J. Wong <djwong@us.ibm.com>
Wed, 24 Nov 2010 05:40:33 +0000 (16:40 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 24 Nov 2010 05:40:33 +0000 (16:40 +1100)
commit2002a7af4e586af0a0ee21383ba62f51456a54b1
tree170f7a810d5947cdba7edc965676ad7d5ea8948c
parentabf77c121b6ce8b343fb4404e9beb5c308b9e727
md: Call blk_queue_flush() to establish flush/fua support

Before 2.6.37, the md layer had a mechanism for catching I/Os with the
barrier flag set, and translating the barrier into barriers for all
the underlying devices.  With 2.6.37, I/O barriers have become plain
old flushes, and the md code was updated to reflect this.  However,
one piece was left out -- the md layer does not tell the block layer
that it supports flushes or FUA access at all, which results in md
silently dropping flush requests.

Since the support already seems there, just add this one piece of
bookkeeping.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c