diff options
| author | Oleg Nesterov <[email protected]> | 2016-09-26 16:55:25 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2016-10-15 00:41:59 +0000 |
| commit | f1a9622037cd370460fd06bb7e28d0f01ceb8ef1 (patch) | |
| tree | 647a7c6d70173cbb7c40237a3dcfbd81346014d8 /lib/debugobjects.c | |
| parent | fs/super.c: fix race between freeze_super() and thaw_super() (diff) | |
| download | kernel-f1a9622037cd370460fd06bb7e28d0f01ceb8ef1.tar.gz kernel-f1a9622037cd370460fd06bb7e28d0f01ceb8ef1.zip | |
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 dbad7c993053
("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 <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
