diff options
Diffstat (limited to 'drivers/block/drbd/drbd_receiver.c')
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 84132f8bf8a4..8e68be939deb 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -1100,8 +1100,6 @@ next_bio: | |||
1100 | /* > e->sector, unless this is the first bio */ | 1100 | /* > e->sector, unless this is the first bio */ |
1101 | bio->bi_sector = sector; | 1101 | bio->bi_sector = sector; |
1102 | bio->bi_bdev = mdev->ldev->backing_bdev; | 1102 | bio->bi_bdev = mdev->ldev->backing_bdev; |
1103 | /* we special case some flags in the multi-bio case, see below | ||
1104 | * (REQ_UNPLUG) */ | ||
1105 | bio->bi_rw = rw; | 1103 | bio->bi_rw = rw; |
1106 | bio->bi_private = e; | 1104 | bio->bi_private = e; |
1107 | bio->bi_end_io = drbd_endio_sec; | 1105 | bio->bi_end_io = drbd_endio_sec; |
@@ -1130,10 +1128,6 @@ next_bio: | |||
1130 | bios = bios->bi_next; | 1128 | bios = bios->bi_next; |
1131 | bio->bi_next = NULL; | 1129 | bio->bi_next = NULL; |
1132 | 1130 | ||
1133 | /* strip off REQ_UNPLUG unless it is the last bio */ | ||
1134 | if (bios) | ||
1135 | bio->bi_rw &= ~REQ_UNPLUG; | ||
1136 | |||
1137 | drbd_generic_make_request(mdev, fault_type, bio); | 1131 | drbd_generic_make_request(mdev, fault_type, bio); |
1138 | } while (bios); | 1132 | } while (bios); |
1139 | return 0; | 1133 | return 0; |
@@ -1621,12 +1615,11 @@ static unsigned long write_flags_to_bio(struct drbd_conf *mdev, u32 dpf) | |||
1621 | { | 1615 | { |
1622 | if (mdev->agreed_pro_version >= 95) | 1616 | if (mdev->agreed_pro_version >= 95) |
1623 | return (dpf & DP_RW_SYNC ? REQ_SYNC : 0) | | 1617 | return (dpf & DP_RW_SYNC ? REQ_SYNC : 0) | |
1624 | (dpf & DP_UNPLUG ? REQ_UNPLUG : 0) | | ||
1625 | (dpf & DP_FUA ? REQ_FUA : 0) | | 1618 | (dpf & DP_FUA ? REQ_FUA : 0) | |
1626 | (dpf & DP_FLUSH ? REQ_FUA : 0) | | 1619 | (dpf & DP_FLUSH ? REQ_FUA : 0) | |
1627 | (dpf & DP_DISCARD ? REQ_DISCARD : 0); | 1620 | (dpf & DP_DISCARD ? REQ_DISCARD : 0); |
1628 | else | 1621 | else |
1629 | return dpf & DP_RW_SYNC ? (REQ_SYNC | REQ_UNPLUG) : 0; | 1622 | return dpf & DP_RW_SYNC ? REQ_SYNC : 0; |
1630 | } | 1623 | } |
1631 | 1624 | ||
1632 | /* mirrored write */ | 1625 | /* mirrored write */ |