Print this page
4965 nlm null rpc returns RPC_TIMEDOUT with shorter timeout value

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/klm/nlm_rpc_handle.c
          +++ new/usr/src/uts/common/klm/nlm_rpc_handle.c
↓ open down ↓ 47 lines elided ↑ open up ↑
  48   48  /*
  49   49   * The following errors codes from nlm_null_rpc indicate that the port we have
  50   50   * cached for the client's NLM service is stale and that we need to establish
  51   51   * a new RPC client.
  52   52   */
  53   53  #define NLM_STALE_CLNT(_status)                 \
  54   54          ((_status) == RPC_PROGUNAVAIL ||        \
  55   55          (_status) == RPC_PROGVERSMISMATCH ||    \
  56   56          (_status) == RPC_PROCUNAVAIL ||         \
  57   57          (_status) == RPC_CANTCONNECT ||         \
       58 +        (_status) == RPC_TIMEDOUT ||            \
  58   59          (_status) == RPC_XPRTFAILED)
  59   60  
  60   61  static struct kmem_cache *nlm_rpch_cache = NULL;
  61   62  
  62   63  static int nlm_rpch_ctor(void *, void *, int);
  63   64  static void nlm_rpch_dtor(void *, void *);
  64   65  static void destroy_rpch(nlm_rpc_t *);
  65   66  static nlm_rpc_t *get_nlm_rpc_fromcache(struct nlm_host *, int);
  66   67  static void update_host_rpcbinding(struct nlm_host *, int);
  67   68  static int refresh_nlm_rpc(struct nlm_host *, nlm_rpc_t *);
↓ open down ↓ 295 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX