]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: fix a list corruption issue in xprt_release()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 13 Oct 2017 18:08:55 +0000 (14:08 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 16 Oct 2017 12:24:08 +0000 (08:24 -0400)
commitd7975a96103846015c1306a3b44d8a705899a3fe
treeb2d8b4e3a8c3a591c52aff428e55f4f6f469e03a
parentd599018c3d91869a00bbed486bd864ca0c31bf99
SUNRPC: fix a list corruption issue in xprt_release()

We remove the request from the receive list before we call
xprt_wait_on_pinned_rqst(), and so we need to use list_del_init().
Otherwise, we will see list corruption when xprt_complete_rqst()
is called.

Reported-by: Emre Celebi <emre@primarydata.com>
Fixes: 5bcda2f97947b ("SUNRPC: Add a separate spinlock to protect...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/xprt.c