diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-08-07 21:33:01 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-08-07 22:13:01 +0200 |
commit | 4011cd97886dd04b90fef8b671b9936cd39ab983 (patch) | |
tree | 8933e97a2215498fd096502005dbf763527ded2a /net/sunrpc/cache.c | |
parent | NFS: Replace flush_scheduled_work with cancel_work_sync() and friends (diff) | |
download | linux-4011cd97886dd04b90fef8b671b9936cd39ab983.tar.xz linux-4011cd97886dd04b90fef8b671b9936cd39ab983.zip |
SUNRPC: Replace flush_workqueue() with cancel_work_sync() and friends
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r-- | net/sunrpc/cache.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 01c3c4105204..ebe344f34d1a 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c @@ -371,8 +371,7 @@ int cache_unregister(struct cache_detail *cd) } if (list_empty(&cache_list)) { /* module must be being unloaded so its safe to kill the worker */ - cancel_delayed_work(&cache_cleaner); - flush_scheduled_work(); + cancel_delayed_work_sync(&cache_cleaner); } return 0; } |