07 Feb, 2012

8 commits

  • This patch removes the CONFIG_NFS_USE_NEW_IDMAPPER compile option.
    First, the idmapper will attempt to map the id using /sbin/request-key
    and nfsidmap. If this fails (if /etc/request-key.conf is not configured
    properly) then the idmapper will call the legacy code to perform the
    mapping. I left a comment stating where the legacy code begins to make
    it easier for somebody to remove in the future.

    Signed-off-by: Bryan Schumaker
    Signed-off-by: Trond Myklebust

    Bryan Schumaker
     
  • data_server_cache entries should only be treated as the same if the address
    list hasn't changed.

    A new entry will be made when an MDS changes an address list (as seen by
    GETDEVINFO). The old entry will be freed once all references are gone.

    Signed-off-by: Weston Andros Adamson
    Signed-off-by: Trond Myklebust

    Weston Andros Adamson
     
  • This patch addresses printks that have some context to show that they are
    from fs/nfs/, but for the sake of consistency now start with NFS:

    Signed-off-by: Weston Andros Adamson
    Signed-off-by: Trond Myklebust

    Weston Andros Adamson
     
  • Messages like "Got error -10052 from the server on DESTROY_SESSION. Session
    has been destroyed regardless" can be confusing to users who aren't very
    familiar with NFS.

    NOTE: This patch ignores any printks() that start by printing __func__ - that
    will be in a separate patch.

    Signed-off-by: Weston Andros Adamson
    Signed-off-by: Trond Myklebust

    Weston Andros Adamson
     
  • We check "task->tk_rqstp" and then we dereference it without checking on
    the next line. The only caller is call_connect() and that has a check
    which prevents it from calling xprt_connect() with a NULL.

    if (task->tk_status < 0)
    return;

    If "task->tk_rqstp" were NULL then "tk_status" would be -EAGAIN.

    Signed-off-by: Dan Carpenter
    Signed-off-by: Trond Myklebust

    Dan Carpenter
     
  • I noticed that test_stateid() was always using the same stateid for open
    and lock recovery. After poking around a bit, I discovered that it was
    always testing with a delegation stateid (even if there was no
    delegation present). I figured this wasn't correct, so now delegation
    and open stateids are tested during open_expired() and lock stateids are
    tested during lock_expired().

    Signed-off-by: Bryan Schumaker
    Signed-off-by: Trond Myklebust

    Bryan Schumaker
     
  • This takes the guesswork out of what stateid to use. The caller is
    expected to figure this out and pass in the correct one.

    Signed-off-by: Bryan Schumaker
    Signed-off-by: Trond Myklebust

    Bryan Schumaker
     
  • Since the scheme of limiting the number of TCP slots to whatever will
    fit in the current TCP window seems to be working well (Andy reports
    getting within 20% of the 'iperf' send performance on a 10GigE link)
    we should just let that be the default mode of operation.

    Users may still set their own limits using the tcp_max_slot_table_entries
    parameter if they need to.

    Signed-off-by: Trond Myklebust

    Trond Myklebust
     

06 Feb, 2012

2 commits


01 Feb, 2012

30 commits