1. 30 9月, 2013 2 次提交
  2. 29 6月, 2013 1 次提交
  3. 07 6月, 2013 1 次提交
  4. 09 5月, 2013 1 次提交
    • A
      NFS4.1 Fix data server connection race · c23266d5
      Andy Adamson 提交于
      Unlike meta data server mounts which support multiple mount points to
      the same server via struct nfs_server, data servers support a single connection.
      
      Concurrent calls to setup the data server connection can race where the first
      call allocates the nfs_client struct, and before the cache struct nfs_client
      pointer can be set, a second call also tries to setup the connection, finds the
      already allocated nfs_client, bumps the reference count, re-initializes the
      session,etc. This results in a hanging data server session after umount.
      Signed-off-by: NAndy Adamson <andros@netapp.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      c23266d5
  5. 05 2月, 2013 1 次提交
  6. 06 12月, 2012 1 次提交
  7. 05 11月, 2012 1 次提交
  8. 15 10月, 2012 1 次提交
  9. 29 9月, 2012 2 次提交
  10. 29 6月, 2012 1 次提交
  11. 24 5月, 2012 1 次提交
    • T
      NFSv4.1: Fix session initialisation races · 7b38c368
      Trond Myklebust 提交于
      Session initialisation is not complete until the lease manager
      has run. We need to ensure that both nfs4_init_session and
      nfs4_init_ds_session do so, and that they check for any resulting
      errors in clp->cl_cons_state.
      
      Only after this is done, can nfs4_ds_connect check the contents
      of clp->cl_exchange_flags.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Andy Adamson <andros@netapp.com>
      7b38c368
  12. 23 5月, 2012 1 次提交
  13. 20 5月, 2012 3 次提交
  14. 27 4月, 2012 1 次提交
  15. 12 3月, 2012 1 次提交
    • T
      NFS: Fix a number of sparse warnings · 17280175
      Trond Myklebust 提交于
      Fix a number of "warning: symbol 'foo' was not declared. Should it be
      static?" conditions.
      
      Fix 2 cases of "warning: Using plain integer as NULL pointer"
      
      fs/nfs/delegation.c:263:31: warning: restricted fmode_t degrades to integer
        - We want to allow upgrades to a WRITE delegation, but should otherwise
          consider servers that hand out duplicate delegations to be borken.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      17280175
  16. 07 2月, 2012 2 次提交
  17. 01 2月, 2012 2 次提交
  18. 13 1月, 2012 1 次提交
  19. 13 7月, 2011 4 次提交
  20. 30 5月, 2011 2 次提交
  21. 29 5月, 2011 2 次提交
  22. 12 5月, 2011 1 次提交
  23. 25 3月, 2011 1 次提交
  24. 12 3月, 2011 4 次提交
  25. 11 3月, 2011 1 次提交
  26. 26 1月, 2011 1 次提交
    • J
      NFS4: Avoid potential NULL pointer dereference in decode_and_add_ds(). · ad3d2eed
      Jesper Juhl 提交于
      On Mon, 17 Jan 2011, Mi Jinlong wrote:
      
      >
      >
      > Jesper Juhl:
      > > strrchr() can return NULL if nothing is found. If this happens we'll
      > > dereference a NULL pointer in
      > > fs/nfs/nfs4filelayoutdev.c::decode_and_add_ds().
      > >
      > > I tried to find some other code that guarantees that this can never
      > > happen but I was unsuccessful. So, unless someone else can point to some
      > > code that ensures this can never be a problem, I believe this patch is
      > > needed.
      > >
      > > While I was changing this code I also noticed that all the dprintk()
      > > statements, except one, start with "%s:". The one missing the ":" I added
      > > it to.
      >
      >   Maybe another one also should be changed at decode_and_add_ds() at line 243:
      >
      >    243  printk("%s Decoded address and port %s\n", __func__, buf);
      >
      Missed that one. Thanks.
      Signed-off-by: NJesper Juhl <jj@chaosbits.net>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      ad3d2eed