Generate the address string in get_gsh_client

We use the string all the time. generate it once
In the process, move these references into the req_ctx

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add remove function to export manager

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add a front end cache to client manager avl tree

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge NEEDS_EXPORT etc. bits for rpc_export handling

copied from 0ec8470462

Signed-off-by: Jim Lieb <jlieb@panasas.com>
ANSI'fy the protocol ops vector initializations

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Clean up redundant code in rpc_execute

Flatten the big switch and eliminate extra code and vars.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Fix rpc dispatch and execute to separate op validate steps

Separate the checking of a valid rpc call which is svc layer
and the selection of op descriptor.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Remove MDONLY test in v3 read/write.

Now done at dispatch level.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Remove security checks from NFS4 ops

Remove calls to nfs_export_check_security, that will be handled when a
handle is instantiated by PUTFH, PUTROORFH, PUTPUBFH, LOOKUP, LOOKUPP,
OPEN, CREATE, etc.

Remove calls to nfs4_Is_Fh_Pseudo, the pseudo file system is
explicitly MD READ ONLY and has no REGULAR files so none of these
operations will succeed.

However, RENAME and LINK do need to check savedFH to see if IT is in
pseudo file system.

hand merged from 595c8280126046c

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add another event to clear just blocked locks when grace period starts.
Update GPFS FSAL to use new async interface for up-calls
Enable building of GPFS rpms and add appropriate sections to cmake.
Also, clean up the default configuration file which has a lot of
parameters that are not supported anymore.
GPFS FSAL cahnge to remove unsed code wrt fsid.  Command not found.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
need to remove from the state_blocked_locks list

Port from 1.5.x:
cfff76cd0ebd45739107d6974cec1f524df166c3

Signed-off-by: rong zeng <rongzeng@us.ibm.com>

Conflicts:

	src/SAL/state_lock.c

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
1. Fix in atomic_store_xxx_t: pass value to __sync_lock_test_and_set. This was causing
   nsm_client not able to turn on monitor flag.
2. Change nsm timeout from 5 to 25 seconds.

Port from 1.5.x:
5ada096bd2f67613c0b485c2b24aa198f0f23150

Signed-off-by: rong zeng <rongzeng@us.ibm.com>
GRANTED_RES does not have file handle, so no check for export or credential.

Port from 1.5.x:
8eaf450bf7c5701453778d866d7552fdc2991057

Signed-off-by: rong zeng <rongzeng@us.ibm.com>
NFSv3 - don't return garbage after setattr

If setattr was only changing size then the attributes
are invalid and cannot be used to populate wcc replay.

Ported from 1.5.x:  4a3af6df1b46075b80f33e43e3f19fd768e6c43a

Signed-off-by: Max Matveev <makc@gmx.co.uk>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Strip Old API GPFS Files

Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>
Scrub log messages for SAL and NLM

Make some error messages non-debu

Ported from 1.5.x: 43071e5d5c7282693928ee5d523e9b71cec1541a

Signed-off-by: Frank Filz <ffilzlnx@us.ibm.com>
Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
In cache_inode_dec_pin_ref, close file when refcount goes to 0. A parameter is added
to only allow nlm_Unshare to utilize this logic.

Ported from 1.5.X: 57b943d0833baddacc0f60b4456669a2dca8e92c

Conflicts:

	src/Cache_inode/cache_inode_lru.c
	src/SAL/nfs4_state.c
	src/SAL/state_lock.c
	src/SAL/state_share.c
	src/include/cache_inode_lru.h

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>