From 13a746abfb4d8a34b17f31a278cfae3148eccd78 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 7 Sep 2013 13:27:54 -0400 Subject: [PATCH] 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 --- src/afs/afs_dcache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c index 402de4f83..e9cefd623 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 */ -- 2.39.5