[Drbd-dev] [PATCH 12/23] sd: handle REQ_UNMAP
Martin K. Petersen
martin.petersen at oracle.com
Thu Mar 30 17:28:32 CEST 2017
"hch at lst.de" <hch at lst.de> writes:
Christoph,
> On Tue, Mar 28, 2017 at 04:48:55PM +0000, Bart Van Assche wrote:
>> > if (sdp->no_write_same)
>> > return BLKPREP_INVALID;
>> > if (sdkp->ws16 || sector > 0xffffffff || nr_sectors > 0xffff)
>>
>> Users can change the provisioning mode from user space from SD_LBP_WS16 into
>> SD_LBP_WS10 so I'm not sure it's safe to skip the (sdkp->ws16 || sector >
>> 0xffffffff || nr_sectors > 0xffff) check if REQ_UNMAP is set.
>
> They can, and if the device has too many sectors that will already cause
> discard to fail,
I'm not sure I understand what you mean by that?
--
Martin K. Petersen Oracle Linux Engineering
More information about the drbd-dev
mailing list