Re: [PATCH] drbd: fix discard_zeroes_if_aligned regression

From: Lars Ellenberg
Date: Tue May 28 2019 - 09:21:49 EST

On Fri, May 10, 2019 at 05:36:32PM +0000, Eric Wheeler wrote:
> Hi Lars,
> We just tried 4.19.x and this bugs still exists. We applied the patch
> which was originally submitted to this thread and it still applies cleanly
> and seems to work for our use case. You mentioned that you had some older
> code which zeroed out unaligned discard requests (or perhaps it was for a
> different purpose) that you may be able to use to patch this. Could you
> dig those up and see if we can get this solved?
> It would be nice to be able to use drbd with thin backing volumes from the
> vanilla kernel. If this has already been fixed in something newer than
> 4.19, then please point me to the commit.

I think it was merged upstream in 5.0
f31e583aa2c2 drbd: introduce P_ZEROES (REQ_OP_WRITE_ZEROES on the "wire")

: Lars Ellenberg
: LINBIT | Keeping the Digital World Running
: DRBD -- Heartbeat -- Corosync -- Pacemaker
: R&D, Integration, Ops, Consulting, Support

DRBD® and LINBIT® are registered trademarks of LINBIT