HomeFreeBSD

nfsd: fix session slot handling for failed callbacks

Description

nfsd: fix session slot handling for failed callbacks

When the NFSv4.1/4.2 server does a callback to a client
on the back channel, it will use a session slot in the
back channel session. If the back channel has failed,
the callback will fail and, without this patch, the
session slot will not be released.
As more callbacks are attempted, all session slots
can become busy and then the nfsd thread gets stuck
waiting for a back channel session slot.

This patch frees the session slot upon callback
failure to avoid this problem.

Without this patch, the problem can be avoided by leaving
delegations disabled in the NFS server.

MFC after: 2 weeks

Details

Provenance
rmacklemAuthored on Apr 23 2021, 10:24 PM
Parents
rG576b477ba41c: openssh: add a note about pushing vendor updates
Branches
Unknown
Tags
Unknown