aboutsummaryrefslogtreecommitdiff
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorGravatar Steven Whitehouse <swhiteho@redhat.com> 2013-12-12 11:34:09 +0000
committerGravatar Steven Whitehouse <swhiteho@redhat.com> 2014-01-14 19:28:25 +0000
commit8ad151c2ac9aa106cb903cfd838b31561dbd7bcc (patch)
tree8c488968b7e9dd8ccfd254608665454b46adf46f /fs/gfs2/incore.h
parentGFS2: Use RCU/hlist_bl based hash for quotas (diff)
downloadlinux-8ad151c2ac9aa106cb903cfd838b31561dbd7bcc.tar.gz
linux-8ad151c2ac9aa106cb903cfd838b31561dbd7bcc.tar.bz2
linux-8ad151c2ac9aa106cb903cfd838b31561dbd7bcc.zip
GFS2: Only run logd and quota when mounted read/write
While investigating a rather strange bit of code in the quota clean up function, I spotted that the reason for its existence was that when remounting read only, we were not stopping the quotad thread, and thus it was possible for it to still have a reference to some of the quotas in that case. This patch moves the logd and quota thread start and stop into the make_fs_rw/ro functions, so that we now stop those threads when mounted read only. This means that quotad will always be stopped before we call the quota clean up function, and we can thus dispose of the (rather hackish) code that waits for it to give up its reference on the quotas. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Cc: Abhijith Das <adas@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
0 files changed, 0 insertions, 0 deletions