Re: [PATCH] vsock/virtio: use GFP_ATOMIC under RCU read lock
From: Michael S. Tsirkin
Date: Mon Oct 07 2024 - 11:48:28 EST
On Mon, Oct 07, 2024 at 08:39:20AM -0700, Jakub Kicinski wrote:
> On Wed, 2 Oct 2024 09:41:42 -0400 Michael S. Tsirkin wrote:
> > virtio_transport_send_pkt in now called on transport fast path,
> > under RCU read lock. In that case, we have a bug: virtio_add_sgs
> > is called with GFP_KERNEL, and might sleep.
> >
> > Pass the gfp flags as an argument, and use GFP_ATOMIC on
> > the fast path.
>
> Hi Michael! The To: linux-kernel@xxxxxxxxxxxxxxx doesn't give much info
> on who you expect to apply this ;) Please let us know if you plan to
> take it via your own tree, otherwise we'll ship it to Linus on Thu.
Hi!
It's in my tree, was in the process of sending a pull request actually.