]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target/core: Simplify the LUN RESET implementation
authorBart Van Assche <bvanassche@acm.org>
Fri, 25 Jan 2019 18:34:45 +0000 (10:34 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Feb 2019 02:26:24 +0000 (21:26 -0500)
commit85a4ab99d48e4f5a58b1fc9d88d1480ba198b312
treeb81ddaf55e0ed65aba6bfea3e408ef53cbe64957
parentcc87acbc2e7b1b2a48a2005233db7a5dfd3661bd
scsi: target/core: Simplify the LUN RESET implementation

Due to the task management handling rework it is safe to wait for a TMF
that is not in the active state. Hence remove the CMD_T_ACTIVE test from
core_tmr_drain_tmr_list(). Additionally, call __target_check_io_state()
instead of open coding it.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Mike Christie <mchristi@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_tmr.c