Commit 0dcf8fe
scsi: iscsi: Fix iSCSI cls conn state
In commit 9e67600 ("scsi: iscsi: Fix race condition between login and
sync thread") I missed that libiscsi was now setting the iSCSI class state,
and that patch ended up resetting the state during conn stoppage and using
the wrong state value during ep_disconnect. This patch moves the setting of
the class state to the class module and then fixes the two issues above.
Link: https://lore.kernel.org/r/20210406171746.5016-1-michael.christie@oracle.com
Fixes: 9e67600 ("scsi: iscsi: Fix race condition between login and sync thread")
Cc: Gulam Mohamed <gulam.mohamed@oracle.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 5cd0f6f commit 0dcf8fe
2 files changed
Lines changed: 18 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3179 | 3179 | | |
3180 | 3180 | | |
3181 | 3181 | | |
3182 | | - | |
3183 | | - | |
| 3182 | + | |
3184 | 3183 | | |
| 3184 | + | |
| 3185 | + | |
3185 | 3186 | | |
3186 | 3187 | | |
3187 | 3188 | | |
| |||
3239 | 3240 | | |
3240 | 3241 | | |
3241 | 3242 | | |
3242 | | - | |
3243 | | - | |
3244 | | - | |
3245 | | - | |
3246 | | - | |
3247 | | - | |
3248 | | - | |
3249 | | - | |
3250 | | - | |
3251 | | - | |
3252 | | - | |
3253 | | - | |
3254 | | - | |
3255 | | - | |
3256 | | - | |
3257 | | - | |
3258 | | - | |
3259 | | - | |
3260 | | - | |
3261 | | - | |
3262 | | - | |
3263 | 3243 | | |
3264 | 3244 | | |
3265 | 3245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2470 | 2470 | | |
2471 | 2471 | | |
2472 | 2472 | | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
2473 | 2486 | | |
2474 | | - | |
| 2487 | + | |
2475 | 2488 | | |
2476 | | - | |
2477 | 2489 | | |
2478 | 2490 | | |
2479 | 2491 | | |
| |||
2961 | 2973 | | |
2962 | 2974 | | |
2963 | 2975 | | |
2964 | | - | |
| 2976 | + | |
2965 | 2977 | | |
2966 | 2978 | | |
2967 | 2979 | | |
| |||
0 commit comments