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: openafs-stable-1_8_0pre1~949 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=13a746abfb4d8a34b17f31a278cfae3148eccd78 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: I11b4c42868ca67e4717fd431b1d33a85ce57bd0f Reviewed-on: http://gerrit.openafs.org/10234 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c index 402de4f..e9cefd6 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 */