diff options
author | Andy Adamson <andros@netapp.com> | 2010-10-20 00:18:02 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-10-24 18:07:10 -0400 |
commit | 974cec8ca0352eb5d281535b714cf194a606e98f (patch) | |
tree | 0e71706c3091fc785bab0be8edc5de36816685ff /fs/nfs/client.c | |
parent | e5e940170b2136ad4d5483ef293ae284b9cc8d53 (diff) | |
download | linux-3.10-974cec8ca0352eb5d281535b714cf194a606e98f.tar.gz linux-3.10-974cec8ca0352eb5d281535b714cf194a606e98f.tar.bz2 linux-3.10-974cec8ca0352eb5d281535b714cf194a606e98f.zip |
NFS: client needs to maintain list of inodes with active layouts
In particular, server reboot will invalidate all layouts.
Note that in order to have an active layout, we must get a successful response
from the server. To avoid adding that machinery, this patch just includes a
stub that fakes up a successful return. Since the layout is never referenced
for io, this is not a problem.
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Dean Hildebrand <dhildebz@umich.edu>
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r-- | fs/nfs/client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index eba0bcc1bab..e55ad211dbe 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -156,7 +156,9 @@ static struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *cl_ cred = rpc_lookup_machine_cred(); if (!IS_ERR(cred)) clp->cl_machine_cred = cred; - +#if defined(CONFIG_NFS_V4_1) + INIT_LIST_HEAD(&clp->cl_layouts); +#endif nfs_fscache_get_client_cookie(clp); return clp; |