[PATCH] misc scsi bits
commit54952b34e5e3c96cccf56d91eb6cbe0bb0b6d18c
authorJens Axboe <axboe@suse.de>
Mon, 28 Oct 2002 02:01:05 +0000 (27 18:01 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 28 Oct 2002 02:01:05 +0000 (27 18:01 -0800)
treec81852f15c1c21503412304bb6fbc63b13be5d2f
parent38487531a691483d1da94d92f0c2a3b7abc72caa
[PATCH] misc scsi bits

Various small bits that make SCSI work well with REQ_BLOCK_PC.

o Use ->errors as the scsi status byte for REQ_BLOCK_PC

o Always call end_io completion, even if 0 sectors, as long as the
  status is good. Otherwise we risk hanging this device if a
  REQ_BLOCK_PC user command didn't specify a transfer size for a command
  that did.

o Remove bouncing checks in scsi_merge for REQ_BLOCK_PC, bio_map_user()
  correctly bounces pages now.

o Decrement req->data_len, it's our residual data count.

o sr/sd: set right transfer and underflow size.
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_merge.c
drivers/scsi/sd.c
drivers/scsi/sr.c