]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[SCSI] ibmvfc: Fix terminate_rport_io
authorBrian King <brking@linux.vnet.ibm.com>
Thu, 5 Aug 2010 21:38:34 +0000 (16:38 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 6 Aug 2010 17:26:36 +0000 (12:26 -0500)
commitd2fab5cf3979c55f802c96616daf96e9e8de1c80
tree84f395993608c7bdc75c81ebf98746d2099e3cb3
parentd5da3040d798df4bbb62579b97f8b6b83749da22
[SCSI] ibmvfc: Fix terminate_rport_io

The ibmvfc driver was incorrectly obtaining a scsi_target pointer
from an fc_rport. The way it is coded ensures that ibmvfc's
terminate_rport_io handler does absolutely nothing. Fix this up
to iterate through affected devices differently, sending cancel
and abort task set as appropriate. Without this patch,
fast_io_fail_tmo is broken for ibmvfc.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/ibmvscsi/ibmvfc.c
drivers/scsi/ibmvscsi/ibmvfc.h