Port from 1.5.x:
358ea07ea1fe1063159bd0c4bcd1539221925606
Calculation of fd usage and proper thread wait time in lru.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Port from 1.5.x:
ba706c89fcecbd35374ecab4aa7942afdb2ab571
Fix few missing places where the entry contents are being checked
without the content lock. Also fix made wrt lock locking order where the
attrlock is taken first before content lock if both needs to be held
simultaneously.

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

5213b92276787472e2a09267cc53101724dd48f1
Avoid deadlocks and lru_thread hang my making sure that it won't process
the entry until it is ready.  Also move lock initialization to
cache_inode_lru_get.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Port from 1.5.x:
c273d55a24e2054247da59c5ca455a290c775b57
Make sure cache_inode_lru_get tries out lanes in different order while
reaping.

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

534dfde2318f44aed191782978f582266c5b6420
Don't hold the content lock in WR mode across high latency operations.

bde4770eff7bef3e843c20896c0e44a56df06b67
Flags needs to be collected under lock before checking;
Otherwise a race with other close+open could change the fd mode and may
result in an write failure with EACCESS.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Partial Port from 1.5.x
f0c81ba56ef8bb914aa201b5ece0f950d6238a91
Make svc_getargs mesage as INFO

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

354c0ac4a7305727221daf9617ffa4d2bbf57459
Part of FTDC enhancements: - Main error logging is done by Return()
macro. In addition, posix2fsal_error logs when there is 1-to-many
mapping. All additional messages are at the LogInfo level.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Port from 1.5.x:
631d3df3865bc0912d76a6f603cddea86aa92efe
Fix cache_inode_lock_trust_attrs to take the configured
grace_period_attr into account. Also fix a small Log message typo.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Port from 1.5.x:
2623379f89821112a9d1d19dc7afdc2a66eb451e
Add proper return code for commit failures.

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

67598ecc938f57cab8d253d740233d7dfa5fc69c
need to disable the fd cache if it is already disabled.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Ported from 1.5.x:
2dadf46fa8ca5ac6a3369860fd24fcf4a00d5f2d
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>
Ported from 1.5.x:

0c19beed17199e1ff8e5c6e23b8ba2876578b106
Set extremis flag in lru_thread only if fd cache is enabled.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Add fsalgpfsext to install targets.