mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
xprtrdma: Cancel refresh worker during buffer shutdown
[ Upstream commit9378b274e1] Trying to create MRs while the transport is being torn down can cause a crash. Fixes:e2ac236c0b("xprtrdma: Allocate MRs on demand") Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b5e7b5ce7f
commit
abdb88128d
@@ -1054,6 +1054,7 @@ void
|
||||
rpcrdma_buffer_destroy(struct rpcrdma_buffer *buf)
|
||||
{
|
||||
cancel_delayed_work_sync(&buf->rb_recovery_worker);
|
||||
cancel_delayed_work_sync(&buf->rb_refresh_worker);
|
||||
|
||||
while (!list_empty(&buf->rb_recv_bufs)) {
|
||||
struct rpcrdma_rep *rep;
|
||||
|
||||
Reference in New Issue
Block a user