summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log_priv.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-11-06 17:41:20 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2019-11-10 19:21:58 +0100
commitf755979355d46ef088f9c9fdb5d11c4a425e738e (patch)
treec613dcf81174e97931b2c71f489d6afcc453c557 /fs/xfs/xfs_log_priv.h
parentxfs: Correct comment tyops -> typos (diff)
downloadlinux-f755979355d46ef088f9c9fdb5d11c4a425e738e.tar.xz
linux-f755979355d46ef088f9c9fdb5d11c4a425e738e.zip
xfs: annotate functions that trip static checker locking checks
Add some lock annotations to helper functions that seem to have unbalanced locking that confuses the static analyzers. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_log_priv.h')
-rw-r--r--fs/xfs/xfs_log_priv.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log_priv.h b/fs/xfs/xfs_log_priv.h
index 4f19375f6592..c47aa2ca6dc7 100644
--- a/fs/xfs/xfs_log_priv.h
+++ b/fs/xfs/xfs_log_priv.h
@@ -537,7 +537,11 @@ xlog_cil_force(struct xlog *log)
* by a spinlock. This matches the semantics of all the wait queues used in the
* log code.
*/
-static inline void xlog_wait(wait_queue_head_t *wq, spinlock_t *lock)
+static inline void
+xlog_wait(
+ struct wait_queue_head *wq,
+ struct spinlock *lock)
+ __releases(lock)
{
DECLARE_WAITQUEUE(wait, current);