scsi: target: Simplify core_tmr_handle_tas_abort()
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 22 Jun 2018 21:52:55 +0000 (14:52 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 2 Jul 2018 20:44:31 +0000 (16:44 -0400)
commit709d56512fe8ed6d5092a1d43a4343d23df2b31c
treec3513d8a4e70e3c3e09caf24c2844f60a430f830
parent953bcf7ad16ac6ecee7d2f5593501aee5e5ae8b8
scsi: target: Simplify core_tmr_handle_tas_abort()

The code that can set CMD_T_TAS is executed by the same thread as the
thread that executes core_tmr_handle_tas_abort(). That means that no
locking is needed to check CMD_T_TAS from inside
core_tmr_handle_tas_abort(). This patch does not change any functionality.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_tmr.c