From: Jules Irenge Date: Wed, 26 Feb 2020 17:37:15 +0000 (-0800) Subject: xfs: Add missing annotation to xfs_ail_check() X-Git-Tag: v5.15~4083^2~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=daebba1b360963b35167f486e63ef9bfac3ebbfc;p=platform%2Fkernel%2Flinux-starfive.git xfs: Add missing annotation to xfs_ail_check() Sparse reports a warning at xfs_ail_check() warning: context imbalance in xfs_ail_check() - unexpected unlock The root cause is the missing annotation at xfs_ail_check() Add the missing __must_hold(&ailp->ail_lock) annotation Signed-off-by: Jules Irenge Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- diff --git a/fs/xfs/xfs_trans_ail.c b/fs/xfs/xfs_trans_ail.c index 00cc5b8..58d4ef1 100644 --- a/fs/xfs/xfs_trans_ail.c +++ b/fs/xfs/xfs_trans_ail.c @@ -32,6 +32,7 @@ STATIC void xfs_ail_check( struct xfs_ail *ailp, struct xfs_log_item *lip) + __must_hold(&ailp->ail_lock) { struct xfs_log_item *prev_lip; struct xfs_log_item *next_lip;