]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] Legacy MegaRAID: Fix READ CAPACITY
authorJames Bottomley <James.Bottomley@SteelEye.com>
Sat, 1 Oct 2005 14:38:05 +0000 (09:38 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Mon, 3 Oct 2005 13:39:48 +0000 (08:39 -0500)
commit51c928c34fa7cff38df584ad01de988805877dba
tree7900dfd128a2a40d6c924a38e5d9244e91342205
parent97af50f60ff1202b0dd9ce481d4cf98c6a578bec
[SCSI] Legacy MegaRAID: Fix READ CAPACITY

Some Legacy megaraid cards can't actually cope with the scatter/gather
version of the READ CAPACITY command (which is what we now send them
since altering all SCSI internal I/O to go via the block layer).  Fix
this (and a few other broken megaraid driver assumptions) by sending
the non-sg version of the command if the sg list only has a single
element.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/megaraid.c