Re: [PATCH v3] fs/ntfs3: fix double ni_unlock() in ntfs_readdir()
From: Ernest Borowski
Date: Fri Dec 04 2026 - 16:31:50 EST
Tested-by: Ernest Borowski <ernest.borowski.git@xxxxxxxxx>
Our test [1] lists a directory of 3000 files three times, so every
listing fills the getdents64() buffer several times. On the ntfs3 tree
at 6ad211033e3e it triggers the lockdep "bad unlock balance" warning on
Ubuntu and Arch. With this patch each listing returns all 3000 names
and dmesg stays clean on both.
[1] https://github.com/xerrni/linux-ntfs/blob/master/tests/ntfs3_readdir_large.sh