summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/rpc_pipe.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-08-07 21:33:01 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-08-07 22:13:01 +0200
commit4011cd97886dd04b90fef8b671b9936cd39ab983 (patch)
tree8933e97a2215498fd096502005dbf763527ded2a /net/sunrpc/rpc_pipe.c
parentNFS: Replace flush_scheduled_work with cancel_work_sync() and friends (diff)
downloadlinux-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/rpc_pipe.c')
-rw-r--r--net/sunrpc/rpc_pipe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 650af064ff8d..669e12a4ed18 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -132,8 +132,7 @@ rpc_close_pipes(struct inode *inode)
rpci->nwriters = 0;
if (ops->release_pipe)
ops->release_pipe(inode);
- cancel_delayed_work(&rpci->queue_timeout);
- flush_workqueue(rpciod_workqueue);
+ cancel_delayed_work_sync(&rpci->queue_timeout);
}
rpc_inode_setowner(inode, NULL);
mutex_unlock(&inode->i_mutex);