Read cs_outstanding_ctl_pdus before incrementing it for NEXUS RESET task.
This removes extra log noise on idle connection termination. MFC after: 1 week
This commit is contained in:
parent
e4fd57fb66
commit
7c5db11fe0
@ -1076,6 +1076,7 @@ cfiscsi_session_terminate_tasks(struct cfiscsi_session *cs)
|
||||
io->io_hdr.nexus.targ_lun = 0;
|
||||
io->taskio.tag_type = CTL_TAG_SIMPLE; /* XXX */
|
||||
io->taskio.task_action = CTL_TASK_I_T_NEXUS_RESET;
|
||||
wait = cs->cs_outstanding_ctl_pdus;
|
||||
refcount_acquire(&cs->cs_outstanding_ctl_pdus);
|
||||
error = ctl_queue(io);
|
||||
if (error != CTL_RETVAL_COMPLETE) {
|
||||
@ -1103,7 +1104,6 @@ cfiscsi_session_terminate_tasks(struct cfiscsi_session *cs)
|
||||
/*
|
||||
* Wait for CTL to terminate all the tasks.
|
||||
*/
|
||||
wait = cs->cs_outstanding_ctl_pdus;
|
||||
if (wait > 0)
|
||||
CFISCSI_SESSION_WARN(cs,
|
||||
"waiting for CTL to terminate %d tasks", wait);
|
||||
|
Loading…
Reference in New Issue
Block a user