]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.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>
Thu, 20 Jun 2013 21:10:39 +0000 (14:10 -0700)
commit862e6389a78992d4ee44bf4f60051fe560470320
tree0b0cceedf17564748ca12e5b25d37ff1f9ac050f
parent670caa9f762647802a1b19749f127ac28949ca5a
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