diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-24 14:31:12 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2009-01-05 02:38:50 -0500 |
commit | 55ba474daed9763b2f6fe26ad762ee373554d65e (patch) | |
tree | cebf67226c2d5e84505fa1aa5e6d8e7afed005c0 /fs | |
parent | 1bb7322fd0d5abdce396de51cbc5dbc489523018 (diff) |
GFS2: sparse annotation of gl->gl_spin
fs/gfs2/glock.c:308:5: warning: context problem in 'do_promote': '_spin_unlock' expected different context
fs/gfs2/glock.c:308:5: context '*gl+28': wanted >= 1, got 0
fs/gfs2/glock.c:529:2: warning: context problem in 'do_xmote': '_spin_unlock' expected different context
fs/gfs2/glock.c:529:2: context '*gl+28': wanted >= 1, got 0
fs/gfs2/glock.c:925:3: warning: context problem in 'add_to_queue': '_spin_unlock' expected different context
fs/gfs2/glock.c:925:3: context '*gl+28': wanted >= 1, got 0
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/gfs2/glock.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index c962283d4e7f..27cb9cca9c08 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c | |||
@@ -293,6 +293,8 @@ static void gfs2_holder_wake(struct gfs2_holder *gh) | |||
293 | */ | 293 | */ |
294 | 294 | ||
295 | static int do_promote(struct gfs2_glock *gl) | 295 | static int do_promote(struct gfs2_glock *gl) |
296 | __releases(&gl->gl_spin) | ||
297 | __acquires(&gl->gl_spin) | ||
296 | { | 298 | { |
297 | const struct gfs2_glock_operations *glops = gl->gl_ops; | 299 | const struct gfs2_glock_operations *glops = gl->gl_ops; |
298 | struct gfs2_holder *gh, *tmp; | 300 | struct gfs2_holder *gh, *tmp; |
@@ -511,6 +513,8 @@ static unsigned int gfs2_lm_lock(struct gfs2_sbd *sdp, void *lock, | |||
511 | */ | 513 | */ |
512 | 514 | ||
513 | static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target) | 515 | static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target) |
516 | __releases(&gl->gl_spin) | ||
517 | __acquires(&gl->gl_spin) | ||
514 | { | 518 | { |
515 | const struct gfs2_glock_operations *glops = gl->gl_ops; | 519 | const struct gfs2_glock_operations *glops = gl->gl_ops; |
516 | struct gfs2_sbd *sdp = gl->gl_sbd; | 520 | struct gfs2_sbd *sdp = gl->gl_sbd; |
@@ -576,6 +580,8 @@ static inline struct gfs2_holder *find_first_holder(const struct gfs2_glock *gl) | |||
576 | */ | 580 | */ |
577 | 581 | ||
578 | static void run_queue(struct gfs2_glock *gl, const int nonblock) | 582 | static void run_queue(struct gfs2_glock *gl, const int nonblock) |
583 | __releases(&gl->gl_spin) | ||
584 | __acquires(&gl->gl_spin) | ||
579 | { | 585 | { |
580 | struct gfs2_holder *gh = NULL; | 586 | struct gfs2_holder *gh = NULL; |
581 | 587 | ||
@@ -877,6 +883,8 @@ void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...) | |||
877 | */ | 883 | */ |
878 | 884 | ||
879 | static inline void add_to_queue(struct gfs2_holder *gh) | 885 | static inline void add_to_queue(struct gfs2_holder *gh) |
886 | __releases(&gl->gl_spin) | ||
887 | __acquires(&gl->gl_spin) | ||
880 | { | 888 | { |
881 | struct gfs2_glock *gl = gh->gh_gl; | 889 | struct gfs2_glock *gl = gh->gh_gl; |
882 | struct gfs2_sbd *sdp = gl->gl_sbd; | 890 | struct gfs2_sbd *sdp = gl->gl_sbd; |