Commit 040515f5 authored by Mike Christie's avatar Mike Christie Committed by James Bottomley

[SCSI] iscsi: return task found during search

from davidw@netapp.com:

remove task type should return a task on success.
Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 994442e8
...@@ -985,7 +985,7 @@ iscsi_remove_##tasktype(struct kfifo *fifo, uint32_t itt) \ ...@@ -985,7 +985,7 @@ iscsi_remove_##tasktype(struct kfifo *fifo, uint32_t itt) \
\ \
if (task->itt == itt) { \ if (task->itt == itt) { \
debug_scsi("matched task\n"); \ debug_scsi("matched task\n"); \
break; \ return task; \
} \ } \
\ \
__kfifo_put(fifo, (void*)&task, sizeof(void*)); \ __kfifo_put(fifo, (void*)&task, sizeof(void*)); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment