Fix Use After Free.
Ported from 1.5.x: 690d68e9789f33024514504279496f019f48d322

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Signed-off-by: suhrud <supatank@in.ibm.com>
Porting updates for Dev_34

Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>
Minor log clean up

Remove a duplicate function (macro actually).

When changing all log levels by -N or by setting COMPONENT_ALL from
environment or SNMP, ignore the components that have special purpose.

Read the environment for COMPONENT_XYZ variables after processing
the -N and -L command line options.

Signed-off-by: Frank Filz <ffilz@us.ibm.com>

Conflicts:

	src/MainNFSD/nfs_init.c
Add config block for log

Var names are the log component name (such as COMPONENT_FSAL).
The COMPONENT_ part is optional. COMPONENT_ is still required
in the environment.

Var values are the log levels (such as NIV_DEBUG). The NIV_
part is optional (and is now optional for environment and
SNMP set values.

Ignore case for components and level values (except component
must still be in all caps in environment).

Signed-off-by: Frank Filz <ffilz@us.ibm.com>

Conflicts:

	src/Log/log_functions.c
	src/include/log.h
changed Use_Getattr_Directory_Invalidation to 0
Ported from 1.5.x: 3efa36184166f8b83d1787aefecf70d82b8458bd

Signed-off-by: suhrud <supatank@in.ibm.com>
Changed Nb_Worker from 128 to 512
Ported from 1.5.x: a15038ddb492c3146ae57c171c490126ef6b67e1

Signed-off-by: suhrud <supatank@in.ibm.com>
Populate post_op_attr with updated attributes after commit.

Ported from: 75eae985f14c0236beabf0fa3727469f289ec8f4

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Need content lock in write mode for open/close

Ported from: 6a850a0baeaebe5c354393197f8f2beac2571d19

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Signed-off-by: Rong zeng <rongzeng@us.ibm.com>
Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>
Remove wcc pre-attrs form Write and Commit Replies

Given that Ganesha need to make multiple calls to underlying filesystem
to perform write and then to get attributes, there is no way we can provide
accurate/atomic wcc pre-attrs. Because of this, the attr times on the client
side are not matching, resulting in invalidating client's cache. Removing
wcc pre-attrs in the Write and Commit replies, allows client to accurately
follow close-to-open semantics and keep the client cache sane.

Ported from: cc3af75fa4e8bd1668f0a967f6e7fb0a03261b20

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>
Update porting doc to indicate what I have completed

Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>