1. 10 2月, 2010 10 次提交
    • H
      xprtsock.c: make bc_{malloc/free} static · 5a51f13a
      H Hartley Sweeten 提交于
      xprtsock.c: make bc_{malloc/free} static
      
      The server backchannel buf_alloc and buf_free methods should
      be static since they are not used outside this file.
      Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: J. Bruce Fields <bfields@fieldses.org>
      Cc: Neil Brown <neilb@suse.de>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      Cc: David S. Miller <davem@davemloft.net>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      5a51f13a
    • C
      SUNRPC: Don't display zero scope IDs · 7a88efe9
      Chuck Lever 提交于
      A zero scope ID means that it wasn't set, so we don't need to append
      it to presentation format addresses.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Acked-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      7a88efe9
    • C
      SUNRPC: Deprecate support for site-local addresses · f1a89a11
      Chuck Lever 提交于
      RFC 3879 "formally deprecates" site-local IPv6 addresses.  We
      interpret that to mean that the scope ID is ignored for all but
      link-local addresses.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Acked-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      f1a89a11
    • J
      nfs: handle NFSv2 -EKEYEXPIRED returns from RPC layer appropriately · 97cefcc6
      Jeff Layton 提交于
      Add a wrapper around rpc_call_sync that handles -EKEYEXPIRED errors from
      the RPC layer as it would an -EJUKEBOX error if NFSv2 had such a thing.
      Also, add a handler for that error for async calls that makes it
      resubmit the RPC on -EKEYEXPIRED.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      97cefcc6
    • J
      nfs: handle NFSv3 -EKEYEXPIRED errors as we would -EJUKEBOX · b68d69b8
      Jeff Layton 提交于
      We're using -EKEYEXPIRED to indicate that a krb5 credcache contains an
      expired ticket and that we should have the NFS layer retry the RPC call
      instead of returning an error back to the caller. Handle this as we
      would an -EJUKEBOX error return.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      b68d69b8
    • J
      nfs4: handle -EKEYEXPIRED errors from RPC layer · 2c643488
      Jeff Layton 提交于
      If a KRB5 TGT ticket expires, we don't want to return an error
      immediatel. If someone has a long running job and just forgets to run
      "kinit" in time then this will make it fail.
      
      Instead, we want to treat this situation as we would NFS4ERR_DELAY and
      retry the upcall after delaying a bit with an exponential backoff.
      
      This patch just makes any place that would handle NFS4ERR_DELAY also
      handle -EKEYEXPIRED the same way. In the future, we may want to be more
      sophisticated however and handle hard vs. soft mounts differently, or
      specify some upper limit on how long we'll wait for a new TGT to be
      acquired.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      2c643488
    • J
      sunrpc: parse and return errors reported by gssd · dc5ddce9
      Jeff Layton 提交于
      The kernel currently ignores any error code sent by gssd and always
      considers it to be -EACCES. In order to better handle the situation of
      an expired KRB5 TGT, the kernel needs to be able to parse and deal with
      the errors that gssd sends. Aside from -EACCES the only error we care
      about is -EKEYEXPIRED, which we're using to indicate that the upper
      layers should retry the call a little later.
      
      To maintain backward compatibility with older gssd's, any error other
      than -EKEYEXPIRED is interpreted as -EACCES.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      dc5ddce9
    • L
      Merge branch 'for-linus' of git://neil.brown.name/md · ac73fddf
      Linus Torvalds 提交于
      * 'for-linus' of git://neil.brown.name/md:
        md: fix some lockdep issues between md and sysfs.
        md: fix 'degraded' calculation when starting a reshape.
      ac73fddf
    • N
      md: fix some lockdep issues between md and sysfs. · ef286f6f
      NeilBrown 提交于
      ======
      This fix is related to
          http://bugzilla.kernel.org/show_bug.cgi?id=15142
      but does not address that exact issue.
      ======
      
      sysfs does like attributes being removed while they are being accessed
      (i.e. read or written) and waits for the access to complete.
      
      As accessing some md attributes takes the same lock that is held while
      removing those attributes a deadlock can occur.
      
      This patch addresses 3 issues in md that could lead to this deadlock.
      
      Two relate to calling flush_scheduled_work while the lock is held.
      This is probably a bad idea in general and as we use schedule_work to
      delete various sysfs objects it is particularly bad.
      
      In one case flush_scheduled_work is called from md_alloc (called by
      md_probe) called from do_md_run which holds the lock.  This call is
      only present to ensure that ->gendisk is set.  However we can be sure
      that gendisk is always set (though possibly we couldn't when that code
      was originally written.  This is because do_md_run is called in three
      different contexts:
        1/ from md_ioctl.  This requires that md_open has succeeded, and it
           fails if ->gendisk is not set.
        2/ from writing a sysfs attribute.  This can only happen if the
           mddev has been registered in sysfs which happens in md_alloc
           after ->gendisk has been set.
        3/ from autorun_array which is only called by autorun_devices, which
           checks for ->gendisk to be set before calling autorun_array.
      So the call to md_probe in do_md_run can be removed, and the check on
      ->gendisk can also go.
      
      
      In the other case flush_scheduled_work is being called in do_md_stop,
      purportedly to wait for all md_delayed_delete calls (which delete the
      component rdevs) to complete.  However there really isn't any need to
      wait for them - they have already been disconnected in all important
      ways.
      
      The third issue is that raid5->stop() removes some attribute names
      while the lock is held.  There is already some infrastructure in place
      to delay attribute removal until after the lock is released (using
      schedule_work).  So extend that infrastructure to remove the
      raid5_attrs_group.
      
      This does not address all lockdep issues related to the sysfs
      "s_active" lock.  The rest can be address by splitting that lockdep
      context between symlinks and non-symlinks which hopefully will happen.
      Signed-off-by: NNeilBrown <neilb@suse.de>
      ef286f6f
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs · 3af9cf11
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
        9p: fix p9_client_destroy unconditional calling v9fs_put_trans
        9p: fix memory leak in v9fs_parse_options()
        9p: Fix the kernel crash on a failed mount
        9p: fix option parsing
        9p: Include fsync support for 9p client
        net/9p: fix statsize inside twstat
        net/9p: fail when user specifies a transport which we can't find
        net/9p: fix virtio transport to correctly update status on connect
      3af9cf11
  2. 09 2月, 2010 19 次提交
  3. 08 2月, 2010 11 次提交