diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2024-09-05 22:09:41 +0300 |
---|---|---|
committer | Anna Schumaker <anna.schumaker@oracle.com> | 2024-09-23 22:03:30 +0300 |
commit | 71c61a0077eb11e8bcc4d03e92ebc0c16df46abe (patch) | |
tree | 8cb2202945e6c305e0eabaf5d450d9ac3b9d8834 /rust/helpers/task.c | |
parent | 7c0b07b49b2da108438e2504452effe0e6cbb764 (diff) | |
download | linux-71c61a0077eb11e8bcc4d03e92ebc0c16df46abe.tar.xz |
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>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions