SUNRPC: Clean up scheduling of autoclose
authorMeena Shanmugam <meenashanmugam@google.com>
Wed, 18 May 2022 18:40:08 +0000 (18:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 07:14:33 +0000 (09:14 +0200)
commit2d6f096476e66a60aad3004f5d8aefff0b5b59df
treef57aa6c6a4332876e294d4a301d0ab01c02fd2d8
parentf3fe8d13ac899ce21df911017a7b13379de08a13
SUNRPC: Clean up scheduling of autoclose

From: Trond Myklebust <trond.myklebust@hammerspace.com>

commit e26d9972720e2484f44cdd94ca4e31cc372ed2ed upstream.

Consolidate duplicated code in xprt_force_disconnect() and
xprt_conditional_disconnect().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Meena Shanmugam <meenashanmugam@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/xprt.c