[SCSI] ide-scsi.: convert to data accessors and !use_sg cleanup
authorBoaz Harrosh <bharrosh@panasas.com>
Tue, 18 Sep 2007 10:27:43 +0000 (12:27 +0200)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:49:08 +0000 (14:49 -0400)
commit427d0bd4fde60f40e9518817d826e48c05262a98
tree973881b7afab9ecec00db9723d9995b2caab20f4
parent52aeeca9001d1b4037a8e5d0c001ebb5fdc61b37
[SCSI] ide-scsi.: convert to data accessors and !use_sg cleanup

 - Convert ide-scsi to the new data accessors and cleanup
   the !use_sg code paths.

  In old code the driver was trying to translate narrow commands,
  if received, to wide commands. This code  path still assumed
  scsi_cmnd->request_buffer is a linear char pointer.
  This means that this driver was broken since 2.6.17.

  As suggested by Christoph Hellwig I set
  use_10_for_rw = 1; and use_10_for_ms = 1;
  for this device and completely killed the translation.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/ide-scsi.c