Commit 9c9f3f5fa62cc4959e4d4d1cf1ec74f2d6ac1197

Authored by Andy Adamson
Committed by Benny Halevy
1 parent 7652e5a09b

nfs41: sunrpc: add a struct svc_xprt pointer to struct svc_serv for backchannel use

This svc_xprt is passed on to the callback service thread to be later used
to processes incoming svc_rqst's

Signed-off-by: Benny Halevy <bhalevy@panasas.com>

Showing 2 changed files with 5 additions and 0 deletions Side-by-side Diff

include/linux/sunrpc/svc.h
... ... @@ -103,6 +103,7 @@
103 103 spinlock_t sv_cb_lock; /* protects the svc_cb_list */
104 104 wait_queue_head_t sv_cb_waitq; /* sleep here if there are no
105 105 * entries in the svc_cb_list */
  106 + struct svc_xprt *bc_xprt;
106 107 #endif /* CONFIG_NFS_V4_1 */
107 108 };
108 109  
... ... @@ -487,6 +487,10 @@
487 487 if (svc_serv_is_pooled(serv))
488 488 svc_pool_map_put();
489 489  
  490 +#if defined(CONFIG_NFS_V4_1)
  491 + svc_sock_destroy(serv->bc_xprt);
  492 +#endif /* CONFIG_NFS_V4_1 */
  493 +
490 494 svc_unregister(serv);
491 495 kfree(serv->sv_pools);
492 496 kfree(serv);