]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target: Add transport_cmd_check_stop write_pending bit
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 6 Jun 2013 08:35:18 +0000 (01:35 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 14 Jun 2013 07:28:26 +0000 (00:28 -0700)
commitace3d8648781acb24e756b300017a6d9132cb6f5
tree3d76c809cda99b7882ac2554513ef2e30b621fb5
parent0076118c994250e6850984155bf429c56a14660f
target: Add transport_cmd_check_stop write_pending bit

This patch adds a new transport_cmd_check_stop() parameter for signaling
when TRANSPORT_WRITE_PENDING needs to be set.

This allows transport_generic_new_cmd() to avoid the extra lock acquire/release
of ->t_state_lock in the fast path for DMA_TO_DEVICE operations ahead of
transport_cmd_check_stop() + se_tfo->write_pending().

Cc: Christoph Hellwig <hch@lst.de>
Cc: Roland Dreier <roland@kernel.org>
Cc: Kent Overstreet <koverstreet@google.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Moussa Ba <moussaba@micron.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c