aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2013-10-04 07:29:34 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2013-10-04 07:29:34 -0400
commite46c772dbafc2059b0c7ee87c6a7232baadaf6c7 (patch)
tree43e33f6a25ba196b9391e5f03e137a46455a0807 /fs/gfs2/incore.h
parentaabd7c72f52145fcf13f9251770b0b0246b5e406 (diff)
GFS2: Protect quota sync generation
Now that gfs2_quota_sync can be potentially called from multiple threads, we should protect this bit of code, and the sync generation number in particular in order to ensure that there are no races when syncing quotas. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Cc: Abhijith Das <adas@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index 37b3cd795d6c..2ab4f8d8f4c4 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -714,6 +714,7 @@ struct gfs2_sbd {
714 struct list_head sd_quota_list; 714 struct list_head sd_quota_list;
715 atomic_t sd_quota_count; 715 atomic_t sd_quota_count;
716 struct mutex sd_quota_mutex; 716 struct mutex sd_quota_mutex;
717 struct mutex sd_quota_sync_mutex;
717 wait_queue_head_t sd_quota_wait; 718 wait_queue_head_t sd_quota_wait;
718 struct list_head sd_trunc_list; 719 struct list_head sd_trunc_list;
719 spinlock_t sd_trunc_lock; 720 spinlock_t sd_trunc_lock;