]> git.baikalelectronics.ru Git - kernel.git/commit
blocK: Restore barrier support for md and probably other virtual devices.
authorNeilBrown <neilb@suse.de>
Tue, 30 Jun 2009 07:35:44 +0000 (09:35 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 1 Jul 2009 08:56:26 +0000 (10:56 +0200)
commit3d2a3cd5739df4da1514b0eb994c013c235f3727
treef094e64952ba746525e4695256a70e0d32553065
parent67c19c581514bc0c69e29e23226c5d9bd5b7adec
blocK: Restore barrier support for md and probably other virtual devices.

The next_ordered flag is only meaningful for devices that use __make_request.
So move the test against next_ordered out of generic code and in to
__make_request

Since this test was added, barriers have not worked on md or any
devices that don't use __make_request and so don't bother to set
next_ordered.  (dm explicitly sets something other than
QUEUE_ORDERED_NONE since
  commit 865c62cd8a4b886fe0bb1cf20187bc58a9c94e13
but notes in the comments that it is otherwise meaningless).

Cc: Ken Milmore <ken.milmore@googlemail.com>
Cc: stable@kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c