barrier: Don't return -EOPNOTSUPP to the caller if the device does not support barriers barrier
authorJens Axboe <jens.axboe@oracle.com>
Tue, 31 Mar 2009 17:00:53 +0000 (19:00 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 31 Mar 2009 17:00:53 +0000 (19:00 +0200)
commit74e725b7f2e5f3f073abe84c5823026a6f1e33ce
tree893f9909a2917313c6c8e0287635f30df9bfaa17
parent15f7176eb1cccec0a332541285ee752b935c1c85
barrier: Don't return -EOPNOTSUPP to the caller if the device does not support barriers

The caller cannot really do much about the situation anyway. Instead log
a warning if this is the first such failed barrier we see, so that the
admin can look into whether this poses a data integrity problem or not.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
14 files changed:
block/blk-barrier.c
block/blk-settings.c
block/ioctl.c
fs/bio.c
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/buffer.c
fs/fat/misc.c
fs/gfs2/log.c
fs/jbd2/commit.c
fs/reiserfs/journal.c
fs/xfs/linux-2.6/xfs_aops.c
include/linux/blkdev.h
include/linux/buffer_head.h