diff options
| author | 2025-09-30 13:42:57 +0800 | |
|---|---|---|
| committer | 2025-10-23 16:24:27 +0200 | |
| commit | 772bae835a95959c9ab3d333de9e9f334cc7b3b5 (patch) | |
| tree | 35b3d7428518b970ac64269c5a8d1c1279ca2222 /tools/perf/scripts/python/bin/ssh:/git@git.zx2c4.com/git: | |
| parent | HID: multitouch: fix sticky fingers (diff) | |
dax: skip read lock assertion for read-only filesystems
[ Upstream commit 154d1e7ad9e5ce4b2aaefd3862b3dba545ad978d ]
The commit 168316db3583("dax: assert that i_rwsem is held
exclusive for writes") added lock assertions to ensure proper
locking in DAX operations. However, these assertions trigger
false-positive lockdep warnings since read lock is unnecessary
on read-only filesystems(e.g., erofs).
This patch skips the read lock assertion for read-only filesystems,
eliminating the spurious warnings while maintaining the integrity
checks for writable filesystems.
Fixes: 168316db3583 ("dax: assert that i_rwsem is held exclusive for writes")
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Friendy Su <friendy.su@sony.com>
Reviewed-by: Daniel Palmer <daniel.palmer@sony.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
