[PATCH] scsi: clear UAC before sending SG_IO

2020-09-10 Thread Randall Huang
Make sure UAC is clear before sending SG_IO. Signed-off-by: Randall Huang --- drivers/scsi/sg.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 20472aaaf630..ad11bca47ae8 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -922,6

Re: [PATCH] scsi: associate bio write hint with WRITE CDB

2019-01-03 Thread Randall Huang
On Thu, Jan 03, 2019 at 11:57:38PM -0500, Martin K. Petersen wrote: > > Ewan, > > > SBC-5 says that support for the grouping function is indicated by the > > GROUP_SUP bit in the Extended Inquiry VPD page (86h). I'm not sure > > how many devices actually support that page though. Probably most

[PATCH] scsi: associate bio write hint with WRITE CDB

2019-01-03 Thread Randall Huang
In SPC-3, WRITE(10)/(16) support grouping function. Let's associate bio write hint with group number for enabling StreamID or Turbo Write feature. Change-Id: I565c8e0c1d10e17a23e73f2a02c1adbd198b04b3 Signed-off-by: Randall Huang --- drivers/scsi/sd.c | 12 ++-- 1 file change

Re: [PATCH] scsi: associate bio write hint with WRITE CDB

2019-01-03 Thread Randall Huang
On Wed, Jan 02, 2019 at 11:51:33PM -0800, Christoph Hellwig wrote: > On Wed, Dec 26, 2018 at 12:15:04PM +0800, Randall Huang wrote: > > In SPC-3, WRITE(10)/(16) support grouping function. > > Let's associate bio write hint with group number for > > enabling Strea

[PATCH] scsi: associate bio write hint with WRITE CDB

2019-01-03 Thread Randall Huang
In SPC-3, WRITE(10)/(16) support grouping function. Let's associate bio write hint with group number for enabling StreamID or Turbo Write feature. Bug: 120900381 Change-Id: I565c8e0c1d10e17a23e73f2a02c1adbd198b04b3 Signed-off-by: Randall Huang --- drivers/scsi/sd.c | 12 ++-- 1

[PATCH] scsi: associate bio write hint with WRITE CDB

2018-12-25 Thread Randall Huang
In SPC-3, WRITE(10)/(16) support grouping function. Let's associate bio write hint with group number for enabling StreamID or Turbo Write feature. Signed-off-by: Randall Huang --- drivers/scsi/sd.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers