diff mbox series

ceph: lockdep annotations for try_nonblocking_invalidate

Message ID 20210902190706.46125-1-jlayton@kernel.org (mailing list archive)
State New, archived
Headers show
Series ceph: lockdep annotations for try_nonblocking_invalidate | expand

Commit Message

Jeff Layton Sept. 2, 2021, 7:07 p.m. UTC
Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
 fs/ceph/caps.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index cdd0ff376c6d..d22db2183d45 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -1847,6 +1847,8 @@  static u64 __mark_caps_flushing(struct inode *inode,
  * try to invalidate mapping pages without blocking.
  */
 static int try_nonblocking_invalidate(struct inode *inode)
+	__releases(ci->i_ceph_lock)
+	__acquires(ci->i_ceph_lock)
 {
 	struct ceph_inode_info *ci = ceph_inode(inode);
 	u32 invalidating_gen = ci->i_rdcache_gen;