]> git.itanic.dy.fi Git - linux-stable/commit
PCI/P2PDMA: Fix a sleeping issue in a RCU read section
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 4 Jan 2024 19:52:35 +0000 (20:52 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:17:04 +0000 (18:17 -0400)
commit558d8fedded841edb0d90276f60df7c49c9a7ad2
tree3b0d3a3db6021efa211059c7775d156fb6b868d2
parent773264c2879a979fae9a36d88677302a2af6900e
PCI/P2PDMA: Fix a sleeping issue in a RCU read section

[ Upstream commit 1e5c66afd4a40bb7be17cb33cbb1a1085f727730 ]

It is not allowed to sleep within a RCU read section, so use GFP_ATOMIC
instead of GFP_KERNEL here.

Link: https://lore.kernel.org/r/02d9ec4a10235def0e764ff1f5be881ba12e16e8.1704397858.git.christophe.jaillet@wanadoo.fr
Fixes: ae21f835a5bd ("PCI/P2PDMA: Finish RCU conversion of pdev->p2pdma")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/p2pdma.c