]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
afs: afs_FlushDCache avoid dup cache drained check
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 7 Sep 2013 17:27:54 +0000 (13:27 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 14 Nov 2013 13:27:58 +0000 (05:27 -0800)
afs_WakeCacheWaitersIfDrained is called as the last statement
of both afs_DiscardDCache and afs_FreeDCache.  There is no need
to perform the same check again before exiting afs_FlushDCache.

Change-Id: I111d7dc1638fa8fc0a4c35d9cc4c0a1631300f89
Reviewed-on: http://gerrit.openafs.org/10433
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/afs_dcache.c

index 7be00eaba469e42cc9f47e7d199aba65f627a6f4..fc73b61d4050352072137ab270a69ab9aac6b60c 100644 (file)
@@ -1007,8 +1007,6 @@ afs_FlushDCache(struct dcache *adc)
     } else {
        afs_FreeDCache(adc);
     }
-
-    afs_WakeCacheWaitersIfDrained();
 }                              /*afs_FlushDCache */