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>
Showing
- block/blk-flush.c 11 additions, 14 deletionsblock/blk-flush.c
- block/blk-lib.c 8 additions, 13 deletionsblock/blk-lib.c
- block/ioctl.c 2 additions, 2 deletionsblock/ioctl.c
- drivers/block/drbd/drbd_int.h 1 addition, 2 deletionsdrivers/block/drbd/drbd_int.h
- drivers/block/drbd/drbd_receiver.c 1 addition, 1 deletiondrivers/block/drbd/drbd_receiver.c
- fs/block_dev.c 1 addition, 1 deletionfs/block_dev.c
- fs/btrfs/extent-tree.c 1 addition, 2 deletionsfs/btrfs/extent-tree.c
- fs/ext3/fsync.c 1 addition, 2 deletionsfs/ext3/fsync.c
- fs/ext4/fsync.c 2 additions, 3 deletionsfs/ext4/fsync.c
- fs/ext4/mballoc.c 1 addition, 2 deletionsfs/ext4/mballoc.c
- fs/fat/fatent.c 1 addition, 2 deletionsfs/fat/fatent.c
- fs/gfs2/rgrp.c 2 additions, 3 deletionsfs/gfs2/rgrp.c
- fs/jbd2/checkpoint.c 1 addition, 2 deletionsfs/jbd2/checkpoint.c
- fs/jbd2/commit.c 2 additions, 4 deletionsfs/jbd2/commit.c
- fs/nilfs2/the_nilfs.c 2 additions, 2 deletionsfs/nilfs2/the_nilfs.c
- fs/reiserfs/file.c 1 addition, 2 deletionsfs/reiserfs/file.c
- fs/xfs/linux-2.6/xfs_super.c 1 addition, 2 deletionsfs/xfs/linux-2.6/xfs_super.c
- include/linux/blkdev.h 5 additions, 9 deletionsinclude/linux/blkdev.h
- mm/swapfile.c 3 additions, 3 deletionsmm/swapfile.c
Loading
Please register or sign in to comment