Make sure cache_inode_lru_get tries out lanes in different order
while reaping.

    Port from 1.5.x:
    c273d55a24e2054247da59c5ca455a290c775b57

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Don't hold the content lock in WR mode across high latency operations.

    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.

(comibined) Port from 1.5.x:
    534dfde2318f44aed191782978f582266c5b6420
    bde4770eff7bef3e843c20896c0e44a56df06b67

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Make svc_getargs mesage as INFO and make GPFS log level INFO by default.

    Partial Port from 1.5.x
    f0c81ba56ef8bb914aa201b5ece0f950d6238a91

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
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.
- Additional logging is added for debug purposes; added TODO to
  remove these additional logs before making it a production level code.

Port from 1.5.x:
354c0ac4a7305727221daf9617ffa4d2bbf57459

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fix cache_inode_lock_trust_attrs to take the configured grace_period_attr
into account. Also fix a small Log message typo.

Port from 1.5.x:
631d3df3865bc0912d76a6f603cddea86aa92efe

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Add proper return code for commit failures.

Port from 1.5.x:
2623379f89821112a9d1d19dc7afdc2a66eb451e

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
No need to disable the fd cache if it is already disabled.

    Port from 1.5.x:
    67598ecc938f57cab8d253d740233d7dfa5fc69c

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.

    Ported from 1.5.x:
    2dadf46fa8ca5ac6a3369860fd24fcf4a00d5f2d

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

    Ported from 1.5.x:
    0c19beed17199e1ff8e5c6e23b8ba2876578b106

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

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Signed-off-by:    Jeremy Bongio <jbongio@us.ibm.com>
Added a new log function to print debug info during specific log levels.

The new function will trigger debug info like backtraces, global
variables, etc. to be printed after any log message that is less then or
equal to the log level of LOG_MESSAGE_DEBUGINFO, a new component.
LOG_MESSAGE_DEBUGINFO is set to NIV_NULL by default, so it has to be
explicitly enabled.

    Ported from 1.5.x:
    bf2652aac2c762ecde75133db85d74285b270f91

Signed-off-by: Jeremy Bongio <jbongio@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Added perl script to change or list log level through snmp.

ported from 1.5.x
d8c2c504efb594fb7e822aba779479ed57e0eabc

Signed-off-by: Jeremy Bongio <jbongio@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Convert French comments/messages to English in logging infrastructure.

Ported from 1.5.x:
c66cca71081da2f05b1a757f930345c9fbfcf7fc

Signed-off-by: Jeremy Bongio <jbongio@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Output more data when a svc_sendreply fails.

Ported from 1.5.x:
b3eadcf0206425280b8d458a69fe1b26e425714d

Signed-off-by: Jeremy Bongio <jbongio@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fix memory leak in debug_info functions.

    Port from 1.5.x:
    ec34463001b97158c088427eee9d0eb0cc9bcffa

Signed-off-by: Jeremy Bongio <jbongio@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fix some error codes so they aren't ignored/retried.

Ported from 1.5.x:
49506e6f3fe94204ed85827b91af98960483a8f5

Signed-off-by: Jeremy Bongio <jbongio@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Stop overwriting cache_inode_commit status accidentally.

Ported from 1.5.x:
e251f09fb19ae273afc2dff858d4948fb9dce7b0

Signed-off-by: Jeremy Bongio <jbongio@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>