]> Git Repo - linux.git/commit
NFSD: Short-circuit fh_verify tracepoints for LOCALIO
authorChuck Lever <[email protected]>
Thu, 5 Sep 2024 19:09:41 +0000 (15:09 -0400)
committerAnna Schumaker <[email protected]>
Mon, 23 Sep 2024 19:03:30 +0000 (15:03 -0400)
commit71c61a0077eb11e8bcc4d03e92ebc0c16df46abe
tree8cb2202945e6c305e0eabaf5d450d9ac3b9d8834
parent7c0b07b49b2da108438e2504452effe0e6cbb764
NFSD: Short-circuit fh_verify tracepoints for LOCALIO

LOCALIO will be able to call fh_verify() with a NULL rqstp. In this
case, the existing trace points need to be skipped because they
want to dereference the address fields in the passed-in rqstp.

Temporarily make these trace points conditional to avoid a seg
fault in this case. Putting the "rqstp != NULL" check in the trace
points themselves makes the check more efficient.

Signed-off-by: Chuck Lever <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Acked-by: Jeff Layton <[email protected]>
Reviewed-by: NeilBrown <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
fs/nfsd/trace.h
This page took 0.04081 seconds and 4 git commands to generate.