block: fix blkdev_issue_flush() not detecting and passing EOPNOTSUPP back
authorJens Axboe <jens.axboe@oracle.com>
Tue, 4 Mar 2008 10:47:46 +0000 (11:47 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 4 Mar 2008 10:47:46 +0000 (11:47 +0100)
commitcc66b4512cae8df4ed1635483210aabf7690ec27
tree8f96be9db22c086efa3751c5c3a80f0ac6007c9f
parent56d94a37f63ad1c9da3bc8e903f79d0ee1e80170
block: fix blkdev_issue_flush() not detecting and passing EOPNOTSUPP back

This is important to eg dm, that tries to decide whether to stop using
barriers or not.

Tested as working by Anders Henke <anders.henke@1und1.de>

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