Commit da7c21b
scsi: qla2xxx: Fix command flush during TMF
For each TMF request, driver iterates through each qpair and flushes
commands associated to the TMF. At the end of the qpair flush, a Marker is
used to complete the flush transaction. This process was repeated for each
qpair. The multiple flush and marker for this TMF request seems to cause
confusion for FW.
Instead, 1 flush is sent to FW. Driver would wait for FW to go through all
the I/Os on each qpair to be read then return. Driver then closes out the
transaction with a Marker.
Cc: stable@vger.kernel.org
Fixes: d90171d ("scsi: qla2xxx: Multi-que support for TMF")
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20230714070104.40052-5-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent a8ec192 commit da7c21b
3 files changed
Lines changed: 45 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2002 | 2002 | | |
2003 | 2003 | | |
2004 | 2004 | | |
2005 | | - | |
2006 | | - | |
2007 | | - | |
2008 | | - | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
2009 | 2009 | | |
2010 | | - | |
2011 | 2010 | | |
2012 | 2011 | | |
2013 | 2012 | | |
| |||
2129 | 2128 | | |
2130 | 2129 | | |
2131 | 2130 | | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
2132 | 2142 | | |
2133 | 2143 | | |
2134 | 2144 | | |
2135 | 2145 | | |
2136 | 2146 | | |
2137 | 2147 | | |
2138 | 2148 | | |
2139 | | - | |
2140 | 2149 | | |
| 2150 | + | |
| 2151 | + | |
2141 | 2152 | | |
2142 | 2153 | | |
2143 | 2154 | | |
| |||
2182 | 2193 | | |
2183 | 2194 | | |
2184 | 2195 | | |
2185 | | - | |
2186 | | - | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
2187 | 2217 | | |
2188 | 2218 | | |
2189 | 2219 | | |
| |||
2261 | 2291 | | |
2262 | 2292 | | |
2263 | 2293 | | |
2264 | | - | |
2265 | 2294 | | |
2266 | | - | |
| 2295 | + | |
2267 | 2296 | | |
2268 | 2297 | | |
2269 | 2298 | | |
| |||
2283 | 2312 | | |
2284 | 2313 | | |
2285 | 2314 | | |
2286 | | - | |
2287 | | - | |
2288 | | - | |
2289 | | - | |
2290 | | - | |
2291 | | - | |
2292 | | - | |
2293 | | - | |
2294 | | - | |
2295 | | - | |
2296 | | - | |
2297 | | - | |
2298 | | - | |
2299 | | - | |
2300 | | - | |
2301 | | - | |
2302 | | - | |
2303 | | - | |
2304 | | - | |
2305 | | - | |
2306 | | - | |
2307 | | - | |
2308 | | - | |
2309 | | - | |
2310 | 2315 | | |
2311 | 2316 | | |
2312 | 2317 | | |
2313 | | - | |
2314 | 2318 | | |
2315 | 2319 | | |
2316 | 2320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3881 | 3881 | | |
3882 | 3882 | | |
3883 | 3883 | | |
| 3884 | + | |
3884 | 3885 | | |
3885 | 3886 | | |
3886 | 3887 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1488 | 1488 | | |
1489 | 1489 | | |
1490 | 1490 | | |
1491 | | - | |
1492 | | - | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
1493 | 1494 | | |
1494 | 1495 | | |
1495 | 1496 | | |
| |||
1555 | 1556 | | |
1556 | 1557 | | |
1557 | 1558 | | |
1558 | | - | |
1559 | | - | |
| 1559 | + | |
| 1560 | + | |
1560 | 1561 | | |
1561 | 1562 | | |
1562 | 1563 | | |
| |||
0 commit comments