summaryrefslogtreecommitdiff
path: root/drivers/acpi/dispatcher/dsopcode.c
diff options
context:
space:
mode:
authorYuezhang Mo <Yuezhang.Mo@sony.com>2025-09-30 13:42:57 +0800
committerChristian Brauner <brauner@kernel.org>2025-10-07 12:48:33 +0200
commit154d1e7ad9e5ce4b2aaefd3862b3dba545ad978d (patch)
tree923b37ab05c793af9224b100586ba2d1ffdbd53e /drivers/acpi/dispatcher/dsopcode.c
parentd68a29a6a229f8b4f3b19dbcd0bb02881316d642 (diff)
dax: skip read lock assertion for read-only filesystems
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>
Diffstat (limited to 'drivers/acpi/dispatcher/dsopcode.c')
0 files changed, 0 insertions, 0 deletions