]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: De-duplicate .pc_release() call sites
authorChuck Lever <chuck.lever@oracle.com>
Thu, 7 Oct 2021 20:17:31 +0000 (16:17 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 12 Oct 2021 14:13:57 +0000 (10:13 -0400)
commit98f35f766c1d8429517d52fed70b3ee9e77f6e63
treee6f66795b39d7c351e3ba1886cf1bb6132db8182
parent040ea8834afaf0d49e8a1b3215394a1813de8516
SUNRPC: De-duplicate .pc_release() call sites

There was some spaghetti in svc_process_common() that had evolved
over time such that there was still one case that needed a call
to .pc_release() but never made it. That issue was removed in
the previous patch.

As additional insurance against missing this important callout,
ensure that the .pc_release() method is always called, no matter
what the reply_stat is.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svc.c