[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200316233804.96657-7-jbi.octave@gmail.com>
Date: Mon, 16 Mar 2020 23:38:04 +0000
From: Jules Irenge <jbi.octave@...il.com>
To: boqun.feng@...il.com
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Alexander Viro <viro@...iv.linux.org.uk>
Subject: [PATCH 6/6] fs: add missing annotation for pin_kill()
Sparse reports a warning at pin_kill()
warning: context imbalance in pin_kill() - unexpected unlock
The root cause is the missing annotation at pin_kill()
Add the missing __releases(RCU)
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
fs/fs_pin.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/fs_pin.c b/fs/fs_pin.c
index 47ef3c71ce90..ee57700740df 100644
--- a/fs/fs_pin.c
+++ b/fs/fs_pin.c
@@ -28,6 +28,7 @@ void pin_insert(struct fs_pin *pin, struct vfsmount *m)
}
void pin_kill(struct fs_pin *p)
+ __releases(RCU)
{
wait_queue_entry_t wait;
--
2.24.1
Powered by blists - more mailing lists