]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: fix drbd wire compatibility for empty flushes
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 31 Jul 2012 07:31:11 +0000 (09:31 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 16 Aug 2012 15:12:56 +0000 (17:12 +0200)
commit365e99a21ac5db5ee3c35789a7d9d96437743714
treea8e7a59fbe8a8c9d5e0ecbe76db9a9c769fd7e30
parenta97be1fed3d3df661812a26f763a29ad08e9f2ec
drbd: fix drbd wire compatibility for empty flushes

DRBD has a concept of request epochs or reorder-domains,
which are separated on the wire by P_BARRIER packets.

Older DRBD is not able to handle zero-sized requests at all,
so we need to map empty flushes to these drbd barriers.

These are the equivalent of empty flushes, and
by default trigger flushes on the receiving side anyways
(unless not supported or explicitly disabled),
so there is no need to handle this differently in newer drbd either.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_req.c