[Drbd-dev] [PATCH 22/23] drbd: implement REQ_OP_WRITE_ZEROES

Martin K. Petersen martin.petersen at oracle.com
Thu Mar 30 17:20:09 CEST 2017


Mike Snitzer <snitzer at redhat.com> writes:

> I can work on this now.  Only question I have is: should DM thinp take
> care to zero any misaligned head and tail?  (I assume so but with all
> the back and forth between Bart, Paolo and Martin I figured I'd ask
> explicitly).

Yep, let's make sure our semantics match the hardware ditto.

 - So write zeroes should behave deterministically and explicitly handle
   any blocks that can't be cleared via deprovisioning.

 - And discard can work at the discard granularity in a
   non-deterministic fashion.

-- 
Martin K. Petersen	Oracle Linux Engineering


More information about the drbd-dev mailing list