]> git.baikalelectronics.ru Git - kernel.git/commit
target: Add transport_handle_cdb_direct optimization
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 4 Jun 2011 03:59:19 +0000 (20:59 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 22 Jul 2011 09:37:44 +0000 (09:37 +0000)
commit77387f8c1f93c38d1387458a63b4f0a20ccc0877
tree7d014011669e28498cf3fd210427373992031735
parenta5d6699ac57e1e247cad7ff47ede9fc95087b0f8
target: Add transport_handle_cdb_direct optimization

This patch adds a transport_handle_cdb_direct() optimization for mapping
and queueing tasks directly from within fabric processing context by calling
the newly exported transport_generic_new_cmd().  This currently expects to
be called from process context only, and will fail if called within interrupt
context.

This patch also leaves transport_generic_handle_cdb() unmodified for the
moment to function as expected with existing tcm_fc and ib_srpt fabrics,
and will be removed once these have been converted and tested with v4.1
code using transport_handle_cdb_direct().

Based on Andy's original patch here:

[PATCH 39/42] target: Call transport_new_cmd instead of adding to cmd queue

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c
include/target/target_core_transport.h