1. 01 2月, 2012 1 次提交
    • S
      SUNRPC: handle RPC client pipefs dentries by network namespace aware routines · 0157d021
      Stanislav Kinsbursky 提交于
      v2:
      1) "Over-put" of PipeFS mount point fixed. Fix is ugly, but allows to bisect
      the patch set. And it will be removed later in the series.
      
      This patch makes RPC clients PipeFs dentries allocations in it's owner network
      namespace context.
      RPC client pipefs dentries creation logic has been changed:
      1) Pipefs dentries creation by sb was moved to separated function, which will
      be used for handling PipeFS mount notification.
      2) Initial value of RPC client PipeFS dir dentry is set no NULL now.
      
      RPC client pipefs dentries cleanup logic has been changed:
      1) Cleanup is done now in separated rpc_remove_pipedir() function, which takes
      care about pipefs superblock locking.
      
      Also this patch removes slashes from cb_program.pipe_dir_name and from
      NFS_PIPE_DIRNAME to make rpc_d_lookup_sb() work. This doesn't affect
      vfs_path_lookup() results in nfs4blocklayout_init() since this slash is cutted
      off anyway in link_path_walk().
      Signed-off-by: NStanislav Kinsbursky <skinsbursky@parallels.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      0157d021
  2. 05 1月, 2012 1 次提交
  3. 24 10月, 2011 1 次提交
  4. 27 9月, 2011 1 次提交
  5. 14 9月, 2011 1 次提交
  6. 23 2月, 2011 1 次提交
  7. 14 2月, 2011 1 次提交
  8. 15 1月, 2011 1 次提交
  9. 14 1月, 2011 1 次提交
  10. 12 1月, 2011 6 次提交
  11. 05 1月, 2011 2 次提交
  12. 17 12月, 2010 5 次提交
  13. 25 10月, 2010 1 次提交
  14. 21 10月, 2010 6 次提交
  15. 02 10月, 2010 8 次提交
  16. 08 9月, 2010 1 次提交
  17. 07 8月, 2010 1 次提交
    • B
      nfsd41: Fix a crash when a callback is retried · c18c821f
      Boaz Harrosh 提交于
      If a callback is retried at nfsd4_cb_recall_done() due to
      some error, the returned rpc reply crashes here:
      
      @@ -514,6 +514,7 @@ decode_cb_sequence(struct xdr_stream *xdr, struct nfsd4_cb_sequence *res,
       	u32 dummy;
       	__be32 *p;
      
       +	BUG_ON(!res);
       	if (res->cbs_minorversion == 0)
       		return 0;
      
      [BUG_ON added for demonstration]
      
      This is because the nfsd4_cb_done_sequence() has NULLed out
      the task->tk_msg.rpc_resp pointer.
      
      Also eventually the rpc would use the new slot without making
      sure it is free by calling nfsd41_cb_setup_sequence().
      
      This problem was introduced by a 4.1 protocol addition patch:
      	[0421b5c5] nfsd41: Backchannel: Implement cb_recall over NFSv4.1
      
      Which was overlooking the possibility of an RPC callback retries.
      For not-4.1 case redoing the _prepare is harmless.
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      c18c821f
  18. 25 6月, 2010 1 次提交