diff options
author | Mike Christie <michael.christie@oracle.com> | 2021-02-07 07:46:06 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-02-09 06:39:04 +0300 |
commit | c8447e4c2eb77dbb96012ae96e7c83179cecf880 (patch) | |
tree | b5b3bff8cf96a86916e36fb40198a0eaa7b1c083 /drivers/scsi/a3000.h | |
parent | 25c400db2083732a5fbdd72f0d3a0337119b2fa5 (diff) | |
download | linux-c8447e4c2eb77dbb96012ae96e7c83179cecf880.tar.xz |
scsi: libiscsi: Reset max/exp cmdsn during recovery
If we lose the session then relogin, but the new cmdsn window has shrunk
(due to something like an admin changing a setting) we will have the old
exp/max_cmdsn values and will never be able to update them. For example,
max_cmdsn would be 64, but if on the target the user set the window to be
smaller then the target could try to return the max_cmdsn as 32. We will
see that new max_cmdsn in the rsp but because it's lower than the old
max_cmdsn when the window was larger we will not update it.
So this patch has us reset the window values during session cleanup so they
can be updated after a new login.
Link: https://lore.kernel.org/r/20210207044608.27585-8-michael.christie@oracle.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/a3000.h')
0 files changed, 0 insertions, 0 deletions