Commit f1a9622
fs/super.c: don't fool lockdep in freeze_super() and thaw_super() paths
sb_wait_write()->percpu_rwsem_release() fools lockdep to avoid the
false-positives. Now that xfs was fixed by Dave's commit dbad7c9
("xfs: stop holding ILOCK over filldir callbacks") we can remove it and
change freeze_super() and thaw_super() to run with s_writers.rw_sem locks
held; we add two trivial helpers for that, lockdep_sb_freeze_release()
and lockdep_sb_freeze_acquire().
xfstests-dev/check `grep -il freeze tests/*/???` does not trigger any
warning from lockdep.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent 89f39af commit f1a9622
1 file changed
Lines changed: 25 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1269 | 1269 | | |
1270 | 1270 | | |
1271 | 1271 | | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | | - | |
1279 | | - | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | 1272 | | |
1284 | 1273 | | |
1285 | | - | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
1286 | 1290 | | |
1287 | 1291 | | |
1288 | 1292 | | |
1289 | 1293 | | |
1290 | 1294 | | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
1291 | 1300 | | |
1292 | 1301 | | |
1293 | 1302 | | |
| |||
1383 | 1392 | | |
1384 | 1393 | | |
1385 | 1394 | | |
| 1395 | + | |
1386 | 1396 | | |
1387 | 1397 | | |
1388 | 1398 | | |
| |||
1409 | 1419 | | |
1410 | 1420 | | |
1411 | 1421 | | |
| 1422 | + | |
| 1423 | + | |
1412 | 1424 | | |
1413 | 1425 | | |
1414 | 1426 | | |
1415 | 1427 | | |
1416 | 1428 | | |
| 1429 | + | |
1417 | 1430 | | |
1418 | 1431 | | |
1419 | 1432 | | |
| |||
0 commit comments