diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-17 17:18:00 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-17 17:18:00 -0500 |
commit | c3e9c04b89059a4c93c792da883ca284de182da5 (patch) | |
tree | 8cb58f19e0329f040e6c5bd2269572d8bbe58c16 /fs/nfs/callback.c | |
parent | e0bcb42e602816415f6fe07313b6fc84932244b7 (diff) | |
parent | fcfa447062b2061e11f68b846d61cbfe60d0d604 (diff) |
Merge tag 'nfs-for-4.15-1' of git://git.linux-nfs.org/projects/anna/linux-nfs
Pull NFS client updates from Anna Schumaker:
"Stable bugfixes:
- Revalidate "." and ".." correctly on open
- Avoid RCU usage in tracepoints
- Fix ugly referral attributes
- Fix a typo in nomigration mount option
- Revert "NFS: Move the flock open mode check into nfs_flock()"
Features:
- Implement a stronger send queue accounting system for NFS over RDMA
- Switch some atomics to the new refcount_t type
Other bugfixes and cleanups:
- Clean up access mode bits
- Remove special-case revalidations in nfs_opendir()
- Improve invalidating NFS over RDMA memory for async operations that
time out
- Handle NFS over RDMA replies with a worqueue
- Handle NFS over RDMA sends with a workqueue
- Fix up replaying interrupted requests
- Remove dead NFS over RDMA definitions
- Update NFS over RDMA copyright information
- Be more consistent with bool initialization and comparisons
- Mark expected switch fall throughs
- Various sunrpc tracepoint cleanups
- Fix various OPEN races
- Fix a typo in nfs_rename()
- Use common error handling code in nfs_lock_and_join_request()
- Check that some structures are properly cleaned up during
net_exit()
- Remove net pointer from dprintk()s"
* tag 'nfs-for-4.15-1' of git://git.linux-nfs.org/projects/anna/linux-nfs: (62 commits)
NFS: Revert "NFS: Move the flock open mode check into nfs_flock()"
NFS: Fix typo in nomigration mount option
nfs: Fix ugly referral attributes
NFS: super: mark expected switch fall-throughs
sunrpc: remove net pointer from messages
nfs: remove net pointer from messages
sunrpc: exit_net cleanup check added
nfs client: exit_net cleanup check added
nfs/write: Use common error handling code in nfs_lock_and_join_requests()
NFSv4: Replace closed stateids with the "invalid special stateid"
NFSv4: nfs_set_open_stateid must not trigger state recovery for closed state
NFSv4: Check the open stateid when searching for expired state
NFSv4: Clean up nfs4_delegreturn_done
NFSv4: cleanup nfs4_close_done
NFSv4: Retry NFS4ERR_OLD_STATEID errors in layoutreturn
pNFS: Retry NFS4ERR_OLD_STATEID errors in layoutreturn-on-close
NFSv4: Don't try to CLOSE if the stateid 'other' field has changed
NFSv4: Retry CLOSE and DELEGRETURN on NFS4ERR_OLD_STATEID.
NFS: Fix a typo in nfs_rename()
NFSv4: Fix open create exclusive when the server reboots
...
Diffstat (limited to 'fs/nfs/callback.c')
-rw-r--r-- | fs/nfs/callback.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c index cd9d992feb2e..509dc5adeb8f 100644 --- a/fs/nfs/callback.c +++ b/fs/nfs/callback.c | |||
@@ -49,15 +49,15 @@ static int nfs4_callback_up_net(struct svc_serv *serv, struct net *net) | |||
49 | if (ret <= 0) | 49 | if (ret <= 0) |
50 | goto out_err; | 50 | goto out_err; |
51 | nn->nfs_callback_tcpport = ret; | 51 | nn->nfs_callback_tcpport = ret; |
52 | dprintk("NFS: Callback listener port = %u (af %u, net %p)\n", | 52 | dprintk("NFS: Callback listener port = %u (af %u, net %x)\n", |
53 | nn->nfs_callback_tcpport, PF_INET, net); | 53 | nn->nfs_callback_tcpport, PF_INET, net->ns.inum); |
54 | 54 | ||
55 | ret = svc_create_xprt(serv, "tcp", net, PF_INET6, | 55 | ret = svc_create_xprt(serv, "tcp", net, PF_INET6, |
56 | nfs_callback_set_tcpport, SVC_SOCK_ANONYMOUS); | 56 | nfs_callback_set_tcpport, SVC_SOCK_ANONYMOUS); |
57 | if (ret > 0) { | 57 | if (ret > 0) { |
58 | nn->nfs_callback_tcpport6 = ret; | 58 | nn->nfs_callback_tcpport6 = ret; |
59 | dprintk("NFS: Callback listener port = %u (af %u, net %p)\n", | 59 | dprintk("NFS: Callback listener port = %u (af %u, net %x\n", |
60 | nn->nfs_callback_tcpport6, PF_INET6, net); | 60 | nn->nfs_callback_tcpport6, PF_INET6, net->ns.inum); |
61 | } else if (ret != -EAFNOSUPPORT) | 61 | } else if (ret != -EAFNOSUPPORT) |
62 | goto out_err; | 62 | goto out_err; |
63 | return 0; | 63 | return 0; |
@@ -185,7 +185,7 @@ static void nfs_callback_down_net(u32 minorversion, struct svc_serv *serv, struc | |||
185 | if (--nn->cb_users[minorversion]) | 185 | if (--nn->cb_users[minorversion]) |
186 | return; | 186 | return; |
187 | 187 | ||
188 | dprintk("NFS: destroy per-net callback data; net=%p\n", net); | 188 | dprintk("NFS: destroy per-net callback data; net=%x\n", net->ns.inum); |
189 | svc_shutdown_net(serv, net); | 189 | svc_shutdown_net(serv, net); |
190 | } | 190 | } |
191 | 191 | ||
@@ -198,7 +198,7 @@ static int nfs_callback_up_net(int minorversion, struct svc_serv *serv, | |||
198 | if (nn->cb_users[minorversion]++) | 198 | if (nn->cb_users[minorversion]++) |
199 | return 0; | 199 | return 0; |
200 | 200 | ||
201 | dprintk("NFS: create per-net callback data; net=%p\n", net); | 201 | dprintk("NFS: create per-net callback data; net=%x\n", net->ns.inum); |
202 | 202 | ||
203 | ret = svc_bind(serv, net); | 203 | ret = svc_bind(serv, net); |
204 | if (ret < 0) { | 204 | if (ret < 0) { |
@@ -223,7 +223,7 @@ err_socks: | |||
223 | err_bind: | 223 | err_bind: |
224 | nn->cb_users[minorversion]--; | 224 | nn->cb_users[minorversion]--; |
225 | dprintk("NFS: Couldn't create callback socket: err = %d; " | 225 | dprintk("NFS: Couldn't create callback socket: err = %d; " |
226 | "net = %p\n", ret, net); | 226 | "net = %x\n", ret, net->ns.inum); |
227 | return ret; | 227 | return ret; |
228 | } | 228 | } |
229 | 229 | ||