From: Jeffrey Altman Date: Sat, 7 Sep 2013 17:27:54 +0000 (-0400) Subject: afs: afs_FlushDCache avoid dup cache drained check X-Git-Tag: upstream/1.6.6_pre2^2~20 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5718036049a01004cd1a085148b9530762811246;p=packages%2Fo%2Fopenafs.git afs: afs_FlushDCache avoid dup cache drained check 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 Reviewed-by: Derrick Brashear Reviewed-by: Marc Dionne Reviewed-by: Benjamin Kaduk Reviewed-by: Stephan Wiesand --- diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c index 7be00eaba..fc73b61d4 100644 --- a/src/afs/afs_dcache.c +++ b/src/afs/afs_dcache.c @@ -1007,8 +1007,6 @@ afs_FlushDCache(struct dcache *adc) } else { afs_FreeDCache(adc); } - - afs_WakeCacheWaitersIfDrained(); } /*afs_FlushDCache */