diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-21 17:02:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-21 17:02:59 -0500 |
commit | 24a52e412ef22989b63c35428652598dc995812c (patch) | |
tree | d8174bc4dfb2b7913896ef46f4366087da8ca42c /net | |
parent | cd50b70ccd5c87794ec28bfb87b7fba9961eb0ae (diff) | |
parent | 71a097c6de9a49afd0f96b3ecef70c4eb04efde7 (diff) |
Merge tag 'nfs-for-3.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
Pull more NFS client updates from Trond Myklebust:
"Highlights include:
- Fix a use-after-free in decode_cb_sequence_args()
- Fix a compile error when #undef CONFIG_PROC_FS
- NFSv4.1 backchannel spinlocking issue
- Cleanups in the NFS unstable write code requested by Linus
- NFSv4.1 fix issues when the server denies our backchannel request
- Cleanups in create_session and bind_conn_to_session"
* tag 'nfs-for-3.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
NFSv4.1: Clean up bind_conn_to_session
NFSv4.1: Always set up a forward channel when binding the session
NFSv4.1: Don't set up a backchannel if the server didn't agree to do so
NFSv4.1: Clean up create_session
pnfs: Refactor the *_layout_mark_request_commit to use pnfs_layout_mark_request_commit
NFSv4: Kill unused nfs_inode->delegation_state field
NFS: struct nfs_commit_info.lock must always point to inode->i_lock
nfs: Can call nfs_clear_page_commit() instead
nfs: Provide and use helper functions for marking a page as unstable
SUNRPC: Always manipulate rpc_rqst::rq_bc_pa_list under xprt->bc_pa_lock
SUNRPC: Fix a compile error when #undef CONFIG_PROC_FS
NFSv4.1: Convert open-coded array allocation calls to kmalloc_array()
NFSv4.1: Fix a kfree() of uninitialised pointers in decode_cb_sequence_args
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/backchannel_rqst.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/sunrpc/backchannel_rqst.c b/net/sunrpc/backchannel_rqst.c index 651f49ab601f..9dd0ea8db463 100644 --- a/net/sunrpc/backchannel_rqst.c +++ b/net/sunrpc/backchannel_rqst.c | |||
@@ -309,12 +309,15 @@ void xprt_complete_bc_request(struct rpc_rqst *req, uint32_t copied) | |||
309 | struct rpc_xprt *xprt = req->rq_xprt; | 309 | struct rpc_xprt *xprt = req->rq_xprt; |
310 | struct svc_serv *bc_serv = xprt->bc_serv; | 310 | struct svc_serv *bc_serv = xprt->bc_serv; |
311 | 311 | ||
312 | spin_lock(&xprt->bc_pa_lock); | ||
313 | list_del(&req->rq_bc_pa_list); | ||
314 | spin_unlock(&xprt->bc_pa_lock); | ||
315 | |||
312 | req->rq_private_buf.len = copied; | 316 | req->rq_private_buf.len = copied; |
313 | set_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state); | 317 | set_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state); |
314 | 318 | ||
315 | dprintk("RPC: add callback request to list\n"); | 319 | dprintk("RPC: add callback request to list\n"); |
316 | spin_lock(&bc_serv->sv_cb_lock); | 320 | spin_lock(&bc_serv->sv_cb_lock); |
317 | list_del(&req->rq_bc_pa_list); | ||
318 | list_add(&req->rq_bc_list, &bc_serv->sv_cb_list); | 321 | list_add(&req->rq_bc_list, &bc_serv->sv_cb_list); |
319 | wake_up(&bc_serv->sv_cb_waitq); | 322 | wake_up(&bc_serv->sv_cb_waitq); |
320 | spin_unlock(&bc_serv->sv_cb_lock); | 323 | spin_unlock(&bc_serv->sv_cb_lock); |