Re: [PATCH] usb: yurex: Rearrange code not to need GFP_ATOMIC

2020-09-21 Thread Alan Stern
On Mon, Sep 21, 2020 at 02:24:52PM +0200, Oliver Neukum wrote: > Am Sonntag, den 20.09.2020, 10:44 +0200 schrieb Pavel Machek: > > Move prepare to wait around, so that normal GFP_KERNEL allocation can > > be used. > > > > Signed-off-by: Pavel Machek (CIP) > > Acked-by: Alan Stern > > Ehm. Pleas

Re: [PATCH] usb: yurex: Rearrange code not to need GFP_ATOMIC

2020-09-21 Thread Oliver Neukum
Am Montag, den 21.09.2020, 14:52 +0200 schrieb Pavel Machek: > Hi! > > > > Task goes to TASK_INTERRUPTIBLE > > > > > if (retval >= 0) > > > timeout = schedule_timeout(YUREX_WRITE_TIMEOUT); > > > > Task turns into Sleeping Beauty until timeout > > Is there way to do the allocations

Re: [PATCH] usb: yurex: Rearrange code not to need GFP_ATOMIC

2020-09-21 Thread Pavel Machek
Hi! > > Move prepare to wait around, so that normal GFP_KERNEL allocation can > > be used. > > > > Signed-off-by: Pavel Machek (CIP) > > Acked-by: Alan Stern > > Ehm. Please recheck. Sorry about that. > > +++ b/drivers/usb/misc/yurex.c > > @@ -489,10 +489,10 @@ static ssize_t yurex_write(str

Re: [PATCH] usb: yurex: Rearrange code not to need GFP_ATOMIC

2020-09-21 Thread Oliver Neukum
Am Sonntag, den 20.09.2020, 10:44 +0200 schrieb Pavel Machek: > Move prepare to wait around, so that normal GFP_KERNEL allocation can > be used. > > Signed-off-by: Pavel Machek (CIP) > Acked-by: Alan Stern Ehm. Please recheck. > diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c