diff options
author | kxie@chelsio.com <kxie@chelsio.com> | 2010-09-23 19:43:23 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-10-07 18:20:42 -0400 |
commit | e3d2ad8cb2775e4201446489efd1cf26c5bbce5c (patch) | |
tree | d5aa3e14f43072338a75555e6436c07aefe21bd1 /drivers/scsi/cxgbi/libcxgbi.h | |
parent | 24d3f95a5b6082ca4aba89071ca6259e15d3e564 (diff) |
[SCSI] libcxgbi: pdu read fixes
Fixed the locking and releasing skb in the case of error in the pdu
read path, and added define iscsi_task_cxgbi_data to access the
private data inside the iscsi_task.
Signed-off-by: Karen Xie <kxie@chelsio.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/cxgbi/libcxgbi.h')
-rw-r--r-- | drivers/scsi/cxgbi/libcxgbi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/cxgbi/libcxgbi.h b/drivers/scsi/cxgbi/libcxgbi.h index 2f2485b0f9ec..48e6d623f76d 100644 --- a/drivers/scsi/cxgbi/libcxgbi.h +++ b/drivers/scsi/cxgbi/libcxgbi.h | |||
@@ -592,6 +592,8 @@ struct cxgbi_task_data { | |||
592 | unsigned int count; | 592 | unsigned int count; |
593 | unsigned int sgoffset; | 593 | unsigned int sgoffset; |
594 | }; | 594 | }; |
595 | #define iscsi_task_cxgbi_data(task) \ | ||
596 | ((task)->dd_data + sizeof(struct iscsi_tcp_task)) | ||
595 | 597 | ||
596 | static inline int cxgbi_is_ddp_tag(struct cxgbi_tag_format *tformat, u32 tag) | 598 | static inline int cxgbi_is_ddp_tag(struct cxgbi_tag_format *tformat, u32 tag) |
597 | { | 599 | { |