diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2013-04-10 10:26:55 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2013-04-10 10:26:55 +0100 |
commit | 81ffbf654f0cfeeb44e69832b3d301958a4108d8 (patch) | |
tree | 7c9c2d1c91dc2f696ea7cd0db25a28987195fcf6 /fs/gfs2/incore.h | |
parent | 16ca9412d8018188bddda29c3fee88471b94e3cb (diff) |
GFS2: Add origin indicator to glock callbacks
This patch adds a bool indicating whether the demote
request was originated locally or remotely. This is then
used by the iopen ->go_callback() to make 100% sure that
it will only respond to remote callbacks.
Since ->evict_inode() uses GL_NOCACHE when it attempts to
get an exclusive lock on the iopen lock, this may result
in extra scheduling of the workqueue in case that the
exclusive promotion request failed. This patch prevents
that from happening.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index 2532f7ec6b0..26aabd7caba 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -210,7 +210,7 @@ struct gfs2_glock_operations { int (*go_lock) (struct gfs2_holder *gh); void (*go_unlock) (struct gfs2_holder *gh); int (*go_dump)(struct seq_file *seq, const struct gfs2_glock *gl); - void (*go_callback) (struct gfs2_glock *gl); + void (*go_callback)(struct gfs2_glock *gl, bool remote); const int go_type; const unsigned long go_flags; #define GLOF_ASPACE 1 |