• Bart Van Assche's avatar
    scsi: target/core: Reduce the amount of code executed with a spinlock held · 3ad98002
    Bart Van Assche authored
    Due to the "make ABORT and LUN RESET handling synchronous" patch, cmd->work
    is only modified from the regular command execution path and no longer
    asynchronously by the code that executes task management functions. Since
    the regular command execution code is sequential per command, no locking is
    required to manipulate cmd->work. Hence stop protecting cmd->work
    manipulations with locking.
    
    Cc: Nicholas Bellinger <nab@linux-iscsi.org>
    Cc: Mike Christie <mchristi@redhat.com>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: David Disseldorp <ddiss@suse.de>
    Cc: Hannes Reinecke <hare@suse.de>
    Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    3ad98002
target_core_transport.c 92.1 KB