summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@kernel.org>2026-11-02 16:52:18 -0500
committerAnna Schumaker <anna.schumaker@hammerspace.com>2026-11-09 15:04:57 -0500
commit000a87910213562ff09f5bc38cd366ce34fccf71 (patch)
treefafce83ff5cd1055a491765effb46dace29349d1 /rust
parentf14b157168ac106cfac6d577e08726488b1b886c (diff)
NFS/localio: hold the client across an asynchronous LOCALIO probe
nfs_local_probe_async() queues the client's own cl_local_probe_work without a reference on the client, and nfs_free_client() does not cancel it. The work takes a reference only once it runs. If the last nfs_put_client() comes first, for example at umount after an NFSv3 I/O queued a throttled probe, the client is freed with its work queued, and the work then runs on freed memory. Take the reference when the work is queued, and drop it when the work has run. If the work is already queued, it already holds a reference, and the one just taken is dropped. Fixes: 76d4cb6345da ("nfs: probe for LOCALIO when v4 client reconnects to server") Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions