]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
libfc: fix ddp in fc_fcp for 0 xid
authorYi Zou <yi.zou@intel.com>
Wed, 21 Oct 2009 23:26:50 +0000 (16:26 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 Jan 2010 23:01:26 +0000 (15:01 -0800)
commit34556a180553c21a2f4a935d8eb9c84d857df61c
tree45c0060030f998b60e60f6a6d9e4ead845febe6f
parent1e418b2888ac64de29659d693d70614583d30ddf
libfc: fix ddp in fc_fcp for 0 xid

commit 5e472d077f45de4f37365171bd742f18b3ef20de upstream.

xid 0 was used as an indication of invalid xid before but now xid 0
can be used as a valid exchange i. This patch fixes the ddp completion
in fcp layer, i.e., in fc_fcp.c:fc_fcp_ddp_done() function, to make sure it
does not use xid 0 for indication of an invalid xid, instead, it now
uses use FC_XID_UNKNOWN for such indication.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/libfc/fc_fcp.c