Commit 5d3148d
scsi: qla2xxx: Fix TMF leak through
Task management can retry up to 5 times when FW resource becomes bottle
neck. Between the retries, there is a short sleep. Current code assumes
the chip has not reset or session has not changed.
Check for chip reset or session change before sending Task management.
Cc: stable@vger.kernel.org
Fixes: 9803fb5 ("scsi: qla2xxx: Fix task management cmd failure")
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20230714070104.40052-9-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 8ebaa45 commit 5d3148d
1 file changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2038 | 2038 | | |
2039 | 2039 | | |
2040 | 2040 | | |
2041 | | - | |
| 2041 | + | |
2042 | 2042 | | |
2043 | 2043 | | |
2044 | 2044 | | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
2045 | 2049 | | |
2046 | 2050 | | |
2047 | 2051 | | |
| |||
2064 | 2068 | | |
2065 | 2069 | | |
2066 | 2070 | | |
| 2071 | + | |
2067 | 2072 | | |
2068 | 2073 | | |
2069 | 2074 | | |
| |||
2073 | 2078 | | |
2074 | 2079 | | |
2075 | 2080 | | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
2076 | 2084 | | |
2077 | 2085 | | |
2078 | 2086 | | |
| |||
2090 | 2098 | | |
2091 | 2099 | | |
2092 | 2100 | | |
2093 | | - | |
| 2101 | + | |
2094 | 2102 | | |
2095 | 2103 | | |
2096 | 2104 | | |
| |||
2159 | 2167 | | |
2160 | 2168 | | |
2161 | 2169 | | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
2162 | 2173 | | |
2163 | 2174 | | |
2164 | 2175 | | |
| |||
2176 | 2187 | | |
2177 | 2188 | | |
2178 | 2189 | | |
2179 | | - | |
| 2190 | + | |
2180 | 2191 | | |
2181 | 2192 | | |
2182 | 2193 | | |
| |||
2195 | 2206 | | |
2196 | 2207 | | |
2197 | 2208 | | |
2198 | | - | |
2199 | | - | |
2200 | | - | |
2201 | 2209 | | |
2202 | 2210 | | |
2203 | 2211 | | |
| |||
0 commit comments