aboutsummaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-11-30 21:18:33 -0500
committerNicholas Bellinger <nab@linux-iscsi.org>2011-12-14 06:48:46 -0500
commit4d2300ccffd22d1d0213b6a8e4d685eb6ca069c0 (patch)
treea76817aa4aaba5a6ffb05b3e6a0ea9ca654a0519 /include/target
parent65586d51e0986be574118286c3d0007e903a2add (diff)
target: Remove extra se_device->execute_task_lock access in fast path
This patch makes __transport_execute_tasks() perform the addition of tasks to dev->execute_task_list via __transport_add_tasks_from_cmd() while holding dev->execute_task_lock during normal I/O fast path submission. It effectively removes the unnecessary re-acquire of dev->execute_task_lock during transport_execute_tasks() -> transport_add_tasks_from_cmd() ahead of calling __transport_execute_tasks() to queue tasks for the passed *se_cmd descriptor. (v2: Re-add goto check_depth usage for multi-task submission for now..) Cc: Christoph Hellwig <hch@lst.de> Cc: Roland Dreier <roland@purestorage.com> Cc: Joern Engel <joern@logfs.org> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_base.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index cd4caf3a598f..a74cb2be74de 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -781,7 +781,6 @@ struct se_device {
781 u32 dev_port_count; 781 u32 dev_port_count;
782 /* See transport_device_status_table */ 782 /* See transport_device_status_table */
783 u32 dev_status; 783 u32 dev_status;
784 u32 dev_tcq_window_closed;
785 /* Physical device queue depth */ 784 /* Physical device queue depth */
786 u32 queue_depth; 785 u32 queue_depth;
787 /* Used for SPC-2 reservations enforce of ISIDs */ 786 /* Used for SPC-2 reservations enforce of ISIDs */