summaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-05-20 05:19:12 +0200
committerJames Bottomley <jbottomley@parallels.com>2011-05-24 19:01:05 +0200
commitaf57c3ac9947990da2608561b71f4799eb7795c6 (patch)
tree35c113646dbd8f18d14e8060220ef9428e1bee61 /include/target
parent[SCSI] target: Fix bug with task_sg chained transport_free_dev_tasks release (diff)
downloadlinux-af57c3ac9947990da2608561b71f4799eb7795c6.tar.xz
linux-af57c3ac9947990da2608561b71f4799eb7795c6.zip
[SCSI] target: Fix task->task_execute_queue=1 clear bug + LUN_RESET OOPs
This patch fixes a bug where task->task_execute_queue=1 was not being cleared once se_task had been removed from se_device->execute_task_list, resulting in an OOPs in core_tmr_lun_reset() for the task->task_active=0 case where transport_remove_task_from_execute_queue() was incorrectly being called. This patch fixes two cases in transport_get_task_from_execute_queue() and transport_remove_task_from_execute_queue() to properly clear task->task_execute_queue=0 once list_del(&task->t_execute_list) has been called. It also adds an explict check in transport_remove_task_from_execute_queue() to dump_stack + return if called with task->task_execute_queue=0. Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org> Cc: stable@kernel.org Signed-off-by: James Bottomley <jbottomley@parallels.com>
Diffstat (limited to 'include/target')
0 files changed, 0 insertions, 0 deletions