diff options
author | Jonathan Lemon <jonathan.lemon@gmail.com> | 2019-12-03 14:01:14 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-18 16:06:00 +0100 |
commit | 94fc256eca987332c2aada67eca47ef7c6d03dfb (patch) | |
tree | 8afae871e8c6d692e760e5dbaeaa0e8473960cee /arch/csky | |
parent | bf22306d92ca59c59dc4aa3bab14768948193d56 (diff) | |
download | linux-stable-94fc256eca987332c2aada67eca47ef7c6d03dfb.tar.gz linux-stable-94fc256eca987332c2aada67eca47ef7c6d03dfb.tar.bz2 linux-stable-94fc256eca987332c2aada67eca47ef7c6d03dfb.zip |
xdp: obtain the mem_id mutex before trying to remove an entry.
[ Upstream commit 86c76c09898332143be365c702cf8d586ed4ed21 ]
A lockdep splat was observed when trying to remove an xdp memory
model from the table since the mutex was obtained when trying to
remove the entry, but not before the table walk started:
Fix the splat by obtaining the lock before starting the table walk.
Fixes: c3f812cea0d7 ("page_pool: do not release pool until inflight == 0.")
Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Tested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/csky')
0 files changed, 0 insertions, 0 deletions