target: add back error handling in transport_complete_task
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Nov 2011 12:06:35 +0000 (05:06 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 2 Nov 2011 16:21:10 +0000 (16:21 +0000)
The commit

    target: use a workqueue for I/O completions

accidentally removed setting t_tasks_failed in transport_complete_task.
Add it back in a slightly cleaner way; now it is set for every failed task
instead of special casing the last one completing by using the success
argument directly for it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>

No differences found