summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2006-05-30 00:37:25 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-06-05 19:11:43 -0400
commit040515f53c09047c76ad074dc6a280984dc84b04 (patch)
treecf7a3ed3a34b925be4a842e04bbfab34f4a8a17d /drivers/scsi/libiscsi.c
parent994442e807782d68bb1d3ae34044f95990411a22 (diff)
downloadop-kernel-dev-040515f53c09047c76ad074dc6a280984dc84b04.zip
op-kernel-dev-040515f53c09047c76ad074dc6a280984dc84b04.tar.gz
[SCSI] iscsi: return task found during search
from davidw@netapp.com: remove task type should return a task on success. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r--drivers/scsi/libiscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index a223413..256b87a 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -985,7 +985,7 @@ iscsi_remove_##tasktype(struct kfifo *fifo, uint32_t itt) \
\
if (task->itt == itt) { \
debug_scsi("matched task\n"); \
- break; \
+ return task; \
} \
\
__kfifo_put(fifo, (void*)&task, sizeof(void*)); \
OpenPOWER on IntegriCloud