Commit fe0690f
Andreas Gruenbacher
gfs2: Sanitize kthread stopping
Immediately stop the logd and quotad kernel threads when a filesystem
withdraw is detected: those threads aren't doing anything useful after a
withdraw. (Depends on the extra logd and quotad task struct references
held since commit 7a109f383fa3 ("gfs2: Fix asynchronous thread
destruction").)
In addition, check for kthread_should_stop() in the wait condition in
gfs2_quotad() to stop immediately when kthread_stop() is called.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>1 parent e4a8b54 commit fe0690f
2 files changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
| 1301 | + | |
| 1302 | + | |
1301 | 1303 | | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
1306 | 1304 | | |
1307 | 1305 | | |
1308 | 1306 | | |
| |||
1311 | 1309 | | |
1312 | 1310 | | |
1313 | 1311 | | |
1314 | | - | |
| 1312 | + | |
1315 | 1313 | | |
1316 | 1314 | | |
1317 | 1315 | | |
| |||
1339 | 1337 | | |
1340 | 1338 | | |
1341 | 1339 | | |
| 1340 | + | |
1342 | 1341 | | |
1343 | 1342 | | |
1344 | 1343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1559 | 1559 | | |
1560 | 1560 | | |
1561 | 1561 | | |
1562 | | - | |
1563 | 1562 | | |
1564 | | - | |
| 1563 | + | |
| 1564 | + | |
1565 | 1565 | | |
1566 | 1566 | | |
1567 | 1567 | | |
| |||
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
1582 | | - | |
1583 | 1582 | | |
1584 | 1583 | | |
1585 | 1584 | | |
1586 | | - | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
1587 | 1588 | | |
1588 | 1589 | | |
1589 | 1590 | | |
| |||
0 commit comments