Skip to contentSkip to conversation

iscsi update: return task found during search

PATCH In review Mike Christie 1 participant 1 message May 30, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/5 iscsi update: return task found during search

from [email protected]:

remove task type should return a task on success.

drivers/scsi/libiscsi.c +1 -1
index a223413..256b87a 100644
@@ -985,7 +985,7 @@ iscsi_remove_##tasktype(struct kfifo *fi
 									\
 		if (task->itt == itt) {					\
 			debug_scsi("matched task\n");			\
-			break;						\
+			return task;					\
 		}							\
 									\
 		__kfifo_put(fifo, (void*)&task, sizeof(void*));		\