This fix will reset errno to zero if the ptfsal_write return great zero in function:
PTFSAL_write.
Signed-off-by: Jeff Huang <huangz@us.ibm.com>
Add #define for Ron's fix 81023485.

Signed-off-by: Matthew Cleveland <mgclevel@us.ibm.com>
Track xprt xp_lock change.

Track the duplex-7 change to use a pthread_mutex xp_lock to
protect xprt handle members.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Cond stall, unstall fixes.

Fix returns from nfs_rpc_cond_stall_xprt.  And then rearm
events as required on unstall.  Log at debug in this case.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>

Dont break it.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>

Conflicts:
	src/MainNFSD/nfs_rpc_dispatcher_thread.c

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Return guard ref on stall.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
s/sp/mtx/ 1.5.x.

Replace request queue and waitq spinlocks with pthread mutexes.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Bump TI-RPC version.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
nfs_req_queue balance, req_cnt trace prints.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Bounded decode.

Stop decoding early if the number of queued requests has exceeded
the configured upper bound (regardless of decoder state).

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
When an xprt is stalled, there was an extra unref.
Increase max limit on total rpc requests and decrease per connection max limit.
Branch for ibm_next_pt_20

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Revert "Create separate lru gc thread when fd caching is disabled."

This reverts commit dc1da9986843ffd2962c3b0612a9654dfa0df094.

Investigation proved that the previous commit is needed.
Though we don't need to process fds if the cache_fds are disabled,
but moving cached entries from LRU1 to LRU2, are needed to recycle
them properly.

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Make sure that we process LRU1 and LRU2 cache even if fd cache is
disabled.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
set Entries_HWMark to 1000 and Entries_LWMark 500.
We may have to adjust this depending on the need.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Set extremis flag in lru_thread only if fd cache is enabled.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Reduce the lru_thread sleep timeout from 10mins to 90sec

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Relese change for ibm_next_pt_21

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Convert close mutex in close_listener.c to handle based mutexes

Signed-off-by: Hin Lam <hincheuk@us.ibm.com>
    Relese change for ibm_next_pt_22

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>