public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] scsi: Fix transfer length 0 for 6-byte r/w commands
@ 2015-05-16  7:17 Akinobu Mita
  2015-05-16  7:17 ` [PATCH 1/7] hpsa: fix " Akinobu Mita
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Akinobu Mita @ 2015-05-16  7:17 UTC (permalink / raw)
  To: linux-scsi, James E.J. Bottomley
  Cc: Akinobu Mita, Don Brace, iss_storagedev, storagedev, Adam Radford,
	Kashyap Desai, Sumit Saxena, Uday Lingala, megaraidlinux.pdl

For 6-byte r/w commands, transfer length 0 means 256 blocks of data,
not 0 block.

But some drivers consider transfer length 0 as 0 block.
Fortunately, the scsi disk driver sets up 10-byte r/w commands for
256 blocks of data instead of 6-byte r/w commands.  So this could be
an issue when SCSI commands are issued by SG_IO ioctl.

Akinobu Mita (7):
  hpsa: fix transfer length 0 for 6-byte r/w commands
  3w-xxxx: fix transfer length 0 for 6-byte r/w commands
  3w-9xxx: fix transfer length 0 for 6-byte r/w commands
  scsi: trace: fix transfer length 0 for 6-byte r/w commands
  staging: rts5208: fix transfer length 0 for 6-byte r/w commands
  megaraid_mbox: fix transfer length 0 for 6-byte r/w commands
  megaraid: fix transfer length 0 for 6-byte r/w commands

 drivers/scsi/3w-9xxx.c                | 5 ++++-
 drivers/scsi/3w-xxxx.c                | 2 ++
 drivers/scsi/hpsa.c                   | 2 ++
 drivers/scsi/megaraid.c               | 2 ++
 drivers/scsi/megaraid/megaraid_mbox.c | 2 ++
 drivers/scsi/scsi_trace.c             | 2 ++
 drivers/staging/rts5208/rtsx_scsi.c   | 8 ++++++--
 7 files changed, 20 insertions(+), 3 deletions(-)

Cc: Don Brace <don.brace@pmcs.com>
Cc: iss_storagedev@hp.com
Cc: storagedev@pmcs.com
Cc: Adam Radford <linuxraid@lsi.com>
Cc: Kashyap Desai <kashyap.desai@avagotech.com>
Cc: Sumit Saxena <sumit.saxena@avagotech.com>
Cc: Uday Lingala <uday.lingala@avagotech.com>
Cc: megaraidlinux.pdl@avagotech.com
Cc: "James E.J. Bottomley" <JBottomley@odin.com>
Cc: linux-scsi@vger.kernel.org
-- 
1.9.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-05-16 16:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-16  7:17 [PATCH 0/7] scsi: Fix transfer length 0 for 6-byte r/w commands Akinobu Mita
2015-05-16  7:17 ` [PATCH 1/7] hpsa: fix " Akinobu Mita
2015-05-16  7:17 ` [PATCH 2/7] 3w-xxxx: " Akinobu Mita
2015-05-16  7:17 ` [PATCH 3/7] 3w-9xxx: " Akinobu Mita
2015-05-16  7:17 ` [PATCH 4/7] scsi: trace: " Akinobu Mita
2015-05-16  7:17 ` [PATCH 5/7] staging: rts5208: " Akinobu Mita
2015-05-16  7:17 ` [PATCH 6/7] megaraid_mbox: " Akinobu Mita
2015-05-16  7:17 ` [PATCH 7/7] megaraid: " Akinobu Mita
2015-05-16 16:46 ` [PATCH 0/7] scsi: Fix " James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox