[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq1y4vtqeb6.fsf@sermon.lab.mkp.net>
Date: Wed, 16 Jul 2014 15:44:13 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: James Bottomley <jbottomley@...allels.com>
Cc: "martin.petersen\@oracle.com" <martin.petersen@...cle.com>,
"linux-kernel\@vger.kernel.org" <linux-kernel@...r.kernel.org>,
"hch\@infradead.org" <hch@...radead.org>,
"devel\@linuxdriverproject.org" <devel@...uxdriverproject.org>,
"apw\@canonical.com" <apw@...onical.com>,
"kys\@microsoft.com" <kys@...rosoft.com>,
"stable\@vger.kernel.org" <stable@...r.kernel.org>,
"linux-scsi\@vger.kernel.org" <linux-scsi@...r.kernel.org>,
"ohering\@suse.com" <ohering@...e.com>,
"jasowang\@redhat.com" <jasowang@...hat.com>
Subject: Re: [PATCH 4/8] Drivers: scsi: storvsc: Filter WRITE_SAME_16
>>>>> "James" == James Bottomley <jbottomley@...allels.com> writes:
James> Well, your judgement: is this situation (support for UNMAP but
James> not for WRITE_SAME) in what is effectively a RAID driver (hv
James> drivers count as RAID) just a silly Microsoft one off?
I only recall seeing one or two devices that supported LBP but not WRITE
SAME w/UNMAP.
James> However, if we get any RAID drivers with strange discard support,
James> we'll likely get the same problem
The LBP VPD page is mandatory now. It wasn't for the first couple of
generations of devices that we still have to support. I think that if a
vendor were to support LBP, adding the mandatory VPD page would be a
given. And so far nobody has messed up the LBP VPD page contents.
My main gripe about linking no_write_same and discard functionality is
that the heuristics for the latter are already excessively complex
thanks to having to support devices that predate the spec. I'm wary of
adding another dimension to that.
Also, linking the two use cases we can get into inconsistent states
where no_write_same is set but the device does not support UNMAP and has
LBPWS=1 and LBPWS10=1 set in the LBP VPD.
I'll contemplate the LBPME => mandatory VPD lookup thing for bit.
--
Martin K. Petersen Oracle Linux Engineering
--
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