block: fix empty barrier on write-through w/ ordered tag
authorTejun Heo <tj@kernel.org>
Fri, 28 Nov 2008 04:32:07 +0000 (13:32 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 29 Dec 2008 07:28:45 +0000 (08:28 +0100)
commita185eb4bc84155fff35b602ce99602c010de9634
treee052052cbac813166b614325b32584d8bb9beff0
parent58eea927d2de43dc6f03d1ba2c46e55854b31540
block: fix empty barrier on write-through w/ ordered tag

Empty barrier on write-through (or no cache) w/ ordered tag has no
command to execute and without any command to execute ordered tag is
never issued to the device and the ordering is never achieved.  Force
draining for such cases.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-barrier.c