[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090830010500.GA24395@infradead.org>
Date: Sat, 29 Aug 2009 21:05:00 -0400
From: Christoph Hellwig <hch@...radead.org>
To: Douglas Gilbert <dgilbert@...erlog.com>
Cc: Christoph Hellwig <hch@...radead.org>, linux-scsi@...r.kernel.org,
linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org,
liml@....ca, jens.axboe@...cle.com, matthew@....cx,
dwmw2@...radead.org
Subject: Re: [PATCH 4/7] sd: add support for WRITE SAME (16) with unmap bit
On Sat, Aug 29, 2009 at 08:43:27PM -0400, Douglas Gilbert wrote:
>> + if (buffer[14] & 0x80)
>> + sdkp->thin_provisioning = 1;
>> +
>
> So you are checking the TPE bit (Thin Provisioning Enabled) but
> not the TPRZ bit (Thin Provisioning Read Zeros). Shouldn't
> there also be a sdkp->thin_provisioning_read_zeros bit defined
> in struct scsi_disk?
>
> Is your application well defined when TPRZ==0 ?
Filesystems do not care if these blocks are in a defined state, as
they must never return the content of uninitilized blocks to userspace.
Now if we do want to support discard through raid arrays we might start
to care, and will have check the TPRZ bit.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists