Commit f4e4c4e
Andreas Gruenbacher
gfs2: fix address space truncation during withdraw
When a withdrawn filesystem's inodes are being evicted, the address spaces of
those inodes still need to be truncated but we can no longer start new
transactions. We still don't want gfs2_invalidate_folio() to race with
gfs2_log_flush(), so take a read lock on sdp->sd_log_flush_lock in that case.
(It may not be obvious, but gfs2_invalidate_folio() is a jdata-only address
space operation.)
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>1 parent 7d2da6e commit f4e4c4e
2 files changed
Lines changed: 39 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1024 | 1024 | | |
1025 | 1025 | | |
1026 | 1026 | | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1032 | 1034 | | |
1033 | 1035 | | |
1034 | 1036 | | |
1035 | 1037 | | |
1036 | 1038 | | |
1037 | | - | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1038 | 1043 | | |
1039 | 1044 | | |
1040 | 1045 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
1342 | | - | |
| 1342 | + | |
1343 | 1343 | | |
1344 | 1344 | | |
1345 | 1345 | | |
1346 | 1346 | | |
1347 | 1347 | | |
1348 | 1348 | | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
1353 | 1352 | | |
1354 | 1353 | | |
1355 | 1354 | | |
1356 | 1355 | | |
1357 | | - | |
| 1356 | + | |
1358 | 1357 | | |
1359 | 1358 | | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
1363 | 1380 | | |
1364 | 1381 | | |
1365 | 1382 | | |
| |||
1398 | 1415 | | |
1399 | 1416 | | |
1400 | 1417 | | |
1401 | | - | |
1402 | | - | |
1403 | 1418 | | |
1404 | | - | |
| 1419 | + | |
1405 | 1420 | | |
1406 | 1421 | | |
1407 | 1422 | | |
| |||
1472 | 1487 | | |
1473 | 1488 | | |
1474 | 1489 | | |
1475 | | - | |
| 1490 | + | |
1476 | 1491 | | |
1477 | 1492 | | |
1478 | 1493 | | |
| |||
0 commit comments