]> git.michaelhowe.org Git - packages/o/openafs.git/commit
vol: clear ih_synced before dropping lock
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 20 Jan 2011 06:23:37 +0000 (01:23 -0500)
committerDerrick Brashear <shadow@dementia.org>
Sat, 22 Jan 2011 20:42:26 +0000 (12:42 -0800)
commit9e689e96099dba5227e62ea2c6069062daaac85a
tree17b5081a76f3e86947bc71c57a0c3d5e0b9b4623
parent6f39035c92713b08065bee28ffdf06c5fe32a971
vol: clear ih_synced before dropping lock

in ih_reallyclose() clear ihP->ih_synced before dropped
the IH_LOCK.  ih_reallyclose() is already committed to
performing the OS_SYNC() call.  Failing to clear the ih_synced
flag before dropping the lock permits another thread, the ih_sync_all()
thread for example, to also conclude that it must sync the
file.

Change-Id: Icb928f7d2ec2342a57ed21b440ae0580c980e9d2
Reviewed-on: http://gerrit.openafs.org/3696
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/ihandle.c