GFS2: Protect quota sync generation
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 4 Oct 2013 11:29:34 +0000 (12:29 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 4 Oct 2013 11:29:34 +0000 (12:29 +0100)
commite46c772dbafc2059b0c7ee87c6a7232baadaf6c7
tree43e33f6a25ba196b9391e5f03e137a46455a0807
parentaabd7c72f52145fcf13f9251770b0b0246b5e406
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>
fs/gfs2/incore.h
fs/gfs2/ops_fstype.c
fs/gfs2/quota.c