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>
Remove pool mutices from ACL code

The current impelmentation of pools is trivial, but all future
implementations are required to be thread safe, too.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Get rid of p-refixes in nfs4_acls.c

I was bitten by a rabid Hungarian as a child and, as a result,
developed an overpowering phobia of their notation that has persisted
into adulthood.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Make NFSv4 ACL code not use MD5

And since we don't use it any more, remove dependencies on OpenSSL.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Return proper error when validating V4 handles

if it is empty, it may be bad but it is really no file..

Signed-off-by: Jim Lieb <jlieb@panasas.com>