diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-04-09 05:38:12 +0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-04-09 06:12:33 +0400 |
commit | 577b42327d707fbe7166aad6902c2eeee6a65015 (patch) | |
tree | 3c2c925ede3f9cd13511e0b9913974200b99719e /fs/nfs/inode.c | |
parent | bc7a05ca5156915a5aada26d64ee035fdd5e5d25 (diff) | |
download | linux-577b42327d707fbe7166aad6902c2eeee6a65015.tar.xz |
NFS: Add functionality to allow waiting on all outstanding reads to complete
This will later allow NFS locking code to wait for readahead to complete
before releasing byte range locks.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 55b840f05ab2..c1c7a9d78722 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -561,6 +561,7 @@ static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) l_ctx->lockowner.l_owner = current->files; l_ctx->lockowner.l_pid = current->tgid; INIT_LIST_HEAD(&l_ctx->list); + nfs_iocounter_init(&l_ctx->io_count); } static struct nfs_lock_context *__nfs_find_lock_context(struct nfs_open_context *ctx) |