Commit 2d81afb8 authored by Harvey Harrison's avatar Harvey Harrison Committed by Steven Whitehouse

[GFS2] trivial sparse lock annotations

Annotate the &sdp->sd_log_lock.
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 048bca22
...@@ -87,6 +87,8 @@ void gfs2_remove_from_ail(struct gfs2_bufdata *bd) ...@@ -87,6 +87,8 @@ void gfs2_remove_from_ail(struct gfs2_bufdata *bd)
*/ */
static void gfs2_ail1_start_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai) static void gfs2_ail1_start_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai)
__releases(&sdp->sd_log_lock)
__acquires(&sdp->sd_log_lock)
{ {
struct gfs2_bufdata *bd, *s; struct gfs2_bufdata *bd, *s;
struct buffer_head *bh; struct buffer_head *bh;
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
*/ */
static inline void gfs2_log_lock(struct gfs2_sbd *sdp) static inline void gfs2_log_lock(struct gfs2_sbd *sdp)
__acquires(&sdp->sd_log_lock)
{ {
spin_lock(&sdp->sd_log_lock); spin_lock(&sdp->sd_log_lock);
} }
...@@ -32,6 +33,7 @@ static inline void gfs2_log_lock(struct gfs2_sbd *sdp) ...@@ -32,6 +33,7 @@ static inline void gfs2_log_lock(struct gfs2_sbd *sdp)
*/ */
static inline void gfs2_log_unlock(struct gfs2_sbd *sdp) static inline void gfs2_log_unlock(struct gfs2_sbd *sdp)
__releases(&sdp->sd_log_lock)
{ {
spin_unlock(&sdp->sd_log_lock); spin_unlock(&sdp->sd_log_lock);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment