Need to free memory in nfs4_op_read when read_size is 0, or cache_inode_rdwr fails

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
Add support for v4 recovery and debug information.
Merge remote-tracking branch 'rongzeng/nfs4_op_read_memleak' into merge_next
RPM: the package now carries the git abbrev commit in its name.
(cherry picked from commit 1f304b7f2c14641833c811b992dbf0817d8563ba)

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Assume USE_PNFS_MDS | USE_PNFS_DS if no PNFS mode is specified

Thanks to Sachin Bhamare who found the problem this fixes and to Marc
Eshel who fixed a problem with the fix.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Add -D directory option to tools/findlog.sh

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Fix two compile issues in 2.0

Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>
Remove cached dirents directly on fsal unlink.

The result of a later attempt to refresh attrs is not relevant.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Use full time resolution in changeattr update.

Use nanoseconds since epoch (watch out Ganesha users of 2554!), but
in future may change to the MS 100ns interval format.

This changes the behavior of cache_inode_fixup_md, and also the VFS
FSAL's time updates, which were truncating to seconds since epoch.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Remove LRU_STATE_RECLAIMING and always perform reclaim in lru_try_reap_entry()

Maintaining the LRU_STATE_RECLAIMING flag in the LRU thread makes it sensitive
to the scheduling of the LRU thread, which can be rare in case caching_fds
is off.
Instead, maintain entries_used atomic counter and check it again the hiwat
in lru_try_reap_entry()

Signed-off-by: Amit Dror <amitd@infinidat.com>
Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Set a lower limit for the LRU thread wait time

Signed-off-by: Amit Dror <amitd@infinidat.com>
Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Order and cleanup in LRU flags

Signed-off-by: Amit Dror <amitd@infinidat.com>
Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Add cancel_all_nlm_blocked function to call before real locks are released.
Fix seqid problem when unlocking a lock after it was blocked.
Add more recent 1.5 patches to porting doc

Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>
Add FSAL upcall asynchronous wrapper functions

These may be called from within methods, or if you think the upcall
takes too long and don't want to hang around for it to finish.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Fix return type and comment for up_get

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Add a general thread fridge

Since all the other thread fridges in the system are used for some
specific purpose, add a queueing worker fridge to accept jobs from
anywhere in ganesha.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Switch Ceph to use the asynchronous invalidate in FILE_SYNC4 ds writes

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Move FSAL_UP source into MainNFSD build

We need to be able to resolve the async functions (and what they call)
at runtime if they are to do the FSALs any good.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>