block: remove BLKDEV_IFL_WAIT
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Sep 2010 18:51:46 +0000 (20:51 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 16 Sep 2010 18:52:58 +0000 (20:52 +0200)
commitdd3932eddf428571762596e17b65f5dc92ca361b
tree57cec5ae2f862037f78b7e993323d77955bb6463
parent8786fb70ccb36c7cff64680bb80c46d3a09d44db
block: remove BLKDEV_IFL_WAIT

All the blkdev_issue_* helpers can only sanely be used for synchronous
caller.  To issue cache flushes or barriers asynchronously the caller needs
to set up a bio by itself with a completion callback to move the asynchronous
state machine ahead.  So drop the BLKDEV_IFL_WAIT flag that is always
specified when calling blkdev_issue_* and also remove the now unused flags
argument to blkdev_issue_flush and blkdev_issue_zeroout.  For
blkdev_issue_discard we need to keep it for the secure discard flag, which
gains a more descriptive name and loses the bitops vs flag confusion.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
19 files changed:
block/blk-flush.c
block/blk-lib.c
block/ioctl.c
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_receiver.c
fs/block_dev.c
fs/btrfs/extent-tree.c
fs/ext3/fsync.c
fs/ext4/fsync.c
fs/ext4/mballoc.c
fs/fat/fatent.c
fs/gfs2/rgrp.c
fs/jbd2/checkpoint.c
fs/jbd2/commit.c
fs/nilfs2/the_nilfs.c
fs/reiserfs/file.c
fs/xfs/linux-2.6/xfs_super.c
include/linux/blkdev.h
mm/swapfile.c