diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2010-04-28 09:55:06 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-04-28 13:47:36 -0400 |
commit | fbd9b09a177a481eda256447c881f014f29034fe (patch) | |
tree | ef7e213045382f82a1e3e3cf134d196a1045dd7a /drivers/block | |
parent | 6b4517a7913a09d3259bb1d21c9cb300f12294bd (diff) |
blkdev: generalize flags for blkdev_issue_fn functions
The patch just convert all blkdev_issue_xxx function to common
set of flags. Wait/allocation semantics preserved.
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 3 | ||||
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index e5e86a781820..d6f1ae342b1d 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h | |||
@@ -2251,7 +2251,8 @@ static inline void drbd_md_flush(struct drbd_conf *mdev) | |||
2251 | if (test_bit(MD_NO_BARRIER, &mdev->flags)) | 2251 | if (test_bit(MD_NO_BARRIER, &mdev->flags)) |
2252 | return; | 2252 | return; |
2253 | 2253 | ||
2254 | r = blkdev_issue_flush(mdev->ldev->md_bdev, NULL); | 2254 | r = blkdev_issue_flush(mdev->ldev->md_bdev, GFP_KERNEL, NULL, |
2255 | BLKDEV_IFL_WAIT); | ||
2255 | if (r) { | 2256 | if (r) { |
2256 | set_bit(MD_NO_BARRIER, &mdev->flags); | 2257 | set_bit(MD_NO_BARRIER, &mdev->flags); |
2257 | dev_err(DEV, "meta data flush failed with status %d, disabling md-flushes\n", r); | 2258 | dev_err(DEV, "meta data flush failed with status %d, disabling md-flushes\n", r); |
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index ed9f1de24a71..54f56ea8a786 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -945,7 +945,8 @@ static enum finish_epoch drbd_flush_after_epoch(struct drbd_conf *mdev, struct d | |||
945 | int rv; | 945 | int rv; |
946 | 946 | ||
947 | if (mdev->write_ordering >= WO_bdev_flush && get_ldev(mdev)) { | 947 | if (mdev->write_ordering >= WO_bdev_flush && get_ldev(mdev)) { |
948 | rv = blkdev_issue_flush(mdev->ldev->backing_bdev, NULL); | 948 | rv = blkdev_issue_flush(mdev->ldev->backing_bdev, GFP_KERNEL, |
949 | NULL, BLKDEV_IFL_WAIT); | ||
949 | if (rv) { | 950 | if (rv) { |
950 | dev_err(DEV, "local disk flush failed with status %d\n", rv); | 951 | dev_err(DEV, "local disk flush failed with status %d\n", rv); |
951 | /* would rather check on EOPNOTSUPP, but that is not reliable. | 952 | /* would rather check on EOPNOTSUPP, but that is not reliable. |