9P/RDMA: remove no-longer necessary structure "datalock"

This caused a bug where datalock would be overwritten between the send (end of processing)
and send callback (putback outbuf to the queue)

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Checkpatch fixes for RC5

A bunch of check patch errors have snuck into Ganesha since I completed
checkpatch. Course I myself introduced one culprit set of changes...

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Thread fridge: s/frigethr/fridgethr/

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Dead code removal of pnfs_common_dummy

Remove linkage hack from the days of autotools...

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add GSS lib check to Cmake's required tests.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
RPM: new way of managing RPM.

The rpm spec file is no more generated on the fly.
It becomes a configure_file managed by CMake (name of the source tarball has to be set in it).
The spec file is now part of the generated tarball, making it possible to run "rpmbuild -ta <tgz file>"

By default, the specfile will generate libs only for FSAL_VFS and FSAL_PROXY. More fsals can be compiled
and packaged by using the "--with" option in rpmbuild.
For example: rpmbuild --with lustre -ta <tgz file>

This option works for rpmbuild --rebuild : rpmbuild --with xfs --rebuild <src.rpm file>

Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
Revert 'Final fix ( hopefully ) of the VFS handle size' until the second part of fbsd recall fixes is submitted

(cherry picked from commit 98b7d2b062ad6a3f94dd249b521e512a828149ac)

Back out change for final. It is not really ready for prime time.  Only
affects FreeBSD.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge branch 'dev_next_bugs' into merge_next
Merge remote-tracking branch 'ffilz/RC5-checkpatch' into merge_next

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge remote-tracking branch 'phdeniel/pull_request' into merge_next

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge remote-tracking branch 'martinetd/next' into merge_next

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge remote-tracking branch 'linuxbox2/next' into merge_next

Conflicts:
	src/MainNFSD/nfs_init.c

Signed-off-by: Jim Lieb <jlieb@panasas.com>
CHECKPATCH: src/FSAL/FSAL_PROXY/handle_mapping

Signed-off-by: Jim Lieb <jlieb@panasas.com>
V2.0-RC-final

Signed-off-by: Jim Lieb <jlieb@panasas.com>
FSAL_VFS: Change vfs_fsal_open_and_stat so that it returns with its fd wether it should be closed

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
9P: clunk in a tool function that is used both on client exit and clunk

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
9P: lopen: make pfid->opens increment atomic in the very unlikely case a single fid is opened twice

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Open FSAL_O_RDWR if state is acquired on a file.

This is required for FSALs such as FSAL_VFS that have silly POSIX
behavior where all locks are released if ANY file descriptor is
closed.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'martinetd/next' into merge_next

For commit 140ad292d91
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Signed-off-by: Matt Benjamin <matt@linuxbox.com>

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Strict compile fix in VFS

Missed unused var in 140ad292d918f

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