Add LTTng build infrastructure

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
Add LTTng tracing as logging option

Derived from original work by Amit Margalit amitm@il.ibm.com

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
Add LTTng tracing of nfs rpc

Initial trace points are the start and end of rpc_execute()

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
Add tracing for individual nfs ops

Expand nfs_rcp by defiuing and adding some new tracepoints

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
Add README and documentation for LTTng usage

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
Do not send attrs which are NA to current protocol.

Do not send attributes which are not recognised by the current
protocol in supported_attributes and in attribute list.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Delay state allocation until actually it is needed.

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
acquire_lease() -> acquire_lease_lock() to avoid confusion.
Also added appropriate comments.

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
Add drc_ prefix to the members of delegrecall_context struct.

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
Add sle_export_id to state_lock_entry_t in addition to sle_export.

The export_id is used to take a reference on export during asyc calls
ex. upcall, deleg_recall etc and compare it with sle_export.

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
Handle race between async-recall and remove_gsh_export()

deleg recall upcall and async recall may reace with remove_gsh_expor()
this patch is to handle those situations deligently.

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
Fix a typo in log message

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
Make Ganesha version searchable in binary with strings

Also adjust the output of ganesha.nfsd -@

And add -v as an option that may be more expected

The following command will dump the version string:

strings /usr/bin/ganesha.nfsd | grep 'Ganesha Version'

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

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'ganltc/for-V2.2-dev-5' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
V2.2-dev-5

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Update to latest NFSv4.2 draft 26
Fix indentation in delegrecall_impl()

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
Acked-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Acked-by: Matt Benjamin <matt@linuxbox.com>
Separate delegations from range lock lists

Delegations now use a new "struct deleg_data" instead of
state_lock_entry_t.  Since delegations always have an associated
state_t, struct deleg_data is just an extension of state_t, so they
don't exist in any list except "deleg_list" in cache inode entry to
just speed up list traversal looking for delegations.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
Acked-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Acked-by: Matt Benjamin <matt@linuxbox.com>
Remove unused sle_export_id field from state_lock_entry_t

Delegations use export_id, but now they use struct deleg_data rather
than state_lock_entry_t. So remove this unused field.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
Acked-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Acked-by: Matt Benjamin <matt@linuxbox.com>