diff options
Diffstat (limited to 'drivers/scsi/libiscsi_tcp.c')
-rw-r--r-- | drivers/scsi/libiscsi_tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libiscsi_tcp.c b/drivers/scsi/libiscsi_tcp.c index b84a1d853f29..2bc07090321d 100644 --- a/drivers/scsi/libiscsi_tcp.c +++ b/drivers/scsi/libiscsi_tcp.c | |||
@@ -440,8 +440,8 @@ void iscsi_tcp_cleanup_task(struct iscsi_task *task) | |||
440 | struct iscsi_tcp_task *tcp_task = task->dd_data; | 440 | struct iscsi_tcp_task *tcp_task = task->dd_data; |
441 | struct iscsi_r2t_info *r2t; | 441 | struct iscsi_r2t_info *r2t; |
442 | 442 | ||
443 | /* nothing to do for mgmt or pending tasks */ | 443 | /* nothing to do for mgmt */ |
444 | if (!task->sc || task->state == ISCSI_TASK_PENDING) | 444 | if (!task->sc) |
445 | return; | 445 | return; |
446 | 446 | ||
447 | /* flush task's r2t queues */ | 447 | /* flush task's r2t queues */ |