• N
    target: Add transport_cmd_check_stop write_pending bit · 862e6389
    Nicholas Bellinger 提交于
    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: NNicholas Bellinger <nab@linux-iscsi.org>
    862e6389
target_core_transport.c 77.9 KB