]> www.infradead.org Git - users/hch/misc.git/commit
NFSD: Short-circuit fh_verify tracepoints for LOCALIO
authorChuck Lever <chuck.lever@oracle.com>
Thu, 5 Sep 2024 19:09:41 +0000 (15:09 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
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 <chuck.lever@oracle.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Acked-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfsd/trace.h