Commit 71a5bb1
committed
nvme: ensure disabling pairs with unquiesce
If any error handling that disables the controller fails to queue the
reset work, like if the state changed to disconnected inbetween, then
the failed teardown needs to unquiesce the queues since it's no longer
paired with reset_work. Just make sure that the controller can be put
into a resetting state prior to starting the disable so that no other
handling can change the queue states while recovery is happening.
Reported-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>1 parent ee6fdc5 commit 71a5bb1
1 file changed
Lines changed: 17 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
| 1301 | + | |
1304 | 1302 | | |
1305 | 1303 | | |
1306 | 1304 | | |
| |||
1351 | 1349 | | |
1352 | 1350 | | |
1353 | 1351 | | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
| 1352 | + | |
1358 | 1353 | | |
1359 | 1354 | | |
1360 | 1355 | | |
| |||
1391 | 1386 | | |
1392 | 1387 | | |
1393 | 1388 | | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
1394 | 1398 | | |
1395 | 1399 | | |
1396 | 1400 | | |
| |||
3278 | 3282 | | |
3279 | 3283 | | |
3280 | 3284 | | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
3281 | 3289 | | |
3282 | 3290 | | |
3283 | 3291 | | |
| |||
3294 | 3302 | | |
3295 | 3303 | | |
3296 | 3304 | | |
3297 | | - | |
| 3305 | + | |
| 3306 | + | |
3298 | 3307 | | |
3299 | 3308 | | |
3300 | 3309 | | |
| |||
0 commit comments