OSDN Git Service

scsi: iscsi: Optimize work queue flush use
authorMike Christie <michael.christie@oracle.com>
Wed, 1 Jul 2020 19:47:47 +0000 (14:47 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 3 Jul 2020 03:46:14 +0000 (23:46 -0400)
commit1d726aa6ef574afbaa90a2c46286d94e55d864b8
treef7f5bf253dc604218638d7a8c03af9ef7f9a9ab5
parente463f96bdc975b780161541877f521da078a8143
scsi: iscsi: Optimize work queue flush use

There is no need for one session to flush the entire iscsi_eh_timer_workq
when removing/unblocking a session. During removal we need to make sure our
works are not running anymore. And iscsi_unblock_session only needs to make
sure its work is done. The unblock work function will flush/cancel the
works it has conflicts with.

Link: https://lore.kernel.org/r/1593632868-6808-3-git-send-email-michael.christie@oracle.com
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_iscsi.c