* [PATCH] HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible
@ 2021-05-24 14:57 Hyeonggon Yoo
2021-05-27 16:45 ` Hyeonggon Yoo
0 siblings, 1 reply; 6+ messages in thread
From: Hyeonggon Yoo @ 2021-05-24 14:57 UTC (permalink / raw)
To: Jiri Kosina, Benjamin Tissoires; +Cc: linux-usb, linux-input, linux-kernel
probe in usb don't need to be atomic. So GFP_KERNEL can be used here,
instead of GFP_ATOMIC.
Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
---
drivers/hid/usbhid/usbmouse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/usbhid/usbmouse.c b/drivers/hid/usbhid/usbmouse.c
index 073127e65ac1..c89332017d5d 100644
--- a/drivers/hid/usbhid/usbmouse.c
+++ b/drivers/hid/usbhid/usbmouse.c
@@ -130,7 +130,7 @@ static int usb_mouse_probe(struct usb_interface *intf, const struct usb_device_i
if (!mouse || !input_dev)
goto fail1;
- mouse->data = usb_alloc_coherent(dev, 8, GFP_ATOMIC, &mouse->data_dma);
+ mouse->data = usb_alloc_coherent(dev, 8, GFP_KERNEL, &mouse->data_dma);
if (!mouse->data)
goto fail1;
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible
2021-05-24 14:57 [PATCH] HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible Hyeonggon Yoo
@ 2021-05-27 16:45 ` Hyeonggon Yoo
2021-05-27 16:54 ` Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Hyeonggon Yoo @ 2021-05-27 16:45 UTC (permalink / raw)
To: Jiri Kosina, Benjamin Tissoires; +Cc: linux-usb, linux-input, linux-kernel
On Mon, May 24, 2021 at 11:57:43PM +0900, Hyeonggon Yoo wrote:
> probe in usb don't need to be atomic. So GFP_KERNEL can be used here,
> instead of GFP_ATOMIC.
>
> Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
> ---
> drivers/hid/usbhid/usbmouse.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/hid/usbhid/usbmouse.c b/drivers/hid/usbhid/usbmouse.c
> index 073127e65ac1..c89332017d5d 100644
> --- a/drivers/hid/usbhid/usbmouse.c
> +++ b/drivers/hid/usbhid/usbmouse.c
> @@ -130,7 +130,7 @@ static int usb_mouse_probe(struct usb_interface *intf, const struct usb_device_i
> if (!mouse || !input_dev)
> goto fail1;
>
> - mouse->data = usb_alloc_coherent(dev, 8, GFP_ATOMIC, &mouse->data_dma);
> + mouse->data = usb_alloc_coherent(dev, 8, GFP_KERNEL, &mouse->data_dma);
> if (!mouse->data)
> goto fail1;
>
> --
> 2.25.1
>
Hello for me it was simple and obvious patch.
Is there something wrong about it?
Then please let me know about it!
Thanks,
Hyeonggon
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible
2021-05-27 16:45 ` Hyeonggon Yoo
@ 2021-05-27 16:54 ` Greg KH
2021-05-27 17:05 ` Hyeonggon Yoo
0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2021-05-27 16:54 UTC (permalink / raw)
To: Hyeonggon Yoo
Cc: Jiri Kosina, Benjamin Tissoires, linux-usb, linux-input, linux-kernel
On Fri, May 28, 2021 at 01:45:17AM +0900, Hyeonggon Yoo wrote:
> On Mon, May 24, 2021 at 11:57:43PM +0900, Hyeonggon Yoo wrote:
> > probe in usb don't need to be atomic. So GFP_KERNEL can be used here,
> > instead of GFP_ATOMIC.
> >
> > Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
> > ---
> > drivers/hid/usbhid/usbmouse.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/hid/usbhid/usbmouse.c b/drivers/hid/usbhid/usbmouse.c
> > index 073127e65ac1..c89332017d5d 100644
> > --- a/drivers/hid/usbhid/usbmouse.c
> > +++ b/drivers/hid/usbhid/usbmouse.c
> > @@ -130,7 +130,7 @@ static int usb_mouse_probe(struct usb_interface *intf, const struct usb_device_i
> > if (!mouse || !input_dev)
> > goto fail1;
> >
> > - mouse->data = usb_alloc_coherent(dev, 8, GFP_ATOMIC, &mouse->data_dma);
> > + mouse->data = usb_alloc_coherent(dev, 8, GFP_KERNEL, &mouse->data_dma);
> > if (!mouse->data)
> > goto fail1;
> >
> > --
> > 2.25.1
> >
>
> Hello for me it was simple and obvious patch.
> Is there something wrong about it?
It has been only 4 days. For a non-bugfix and for something that is
only a "cleanup" change, give it at least 2 weeks please.
Relax, there is no rush for stuff like this.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible
2021-05-27 16:54 ` Greg KH
@ 2021-05-27 17:05 ` Hyeonggon Yoo
2021-05-27 17:11 ` Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Hyeonggon Yoo @ 2021-05-27 17:05 UTC (permalink / raw)
To: Greg KH
Cc: Jiri Kosina, Benjamin Tissoires, linux-usb, linux-input, linux-kernel
On Thu, May 27, 2021 at 06:54:07PM +0200, Greg KH wrote:
> It has been only 4 days. For a non-bugfix and for something that is
> only a "cleanup" change, give it at least 2 weeks please.
>
> Relax, there is no rush for stuff like this.
Hello Greg!
Okay You are right. I'll relax...
I think I need to be familiar with the process :)
Thank you!
Hyeonggon
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible
2021-05-27 17:05 ` Hyeonggon Yoo
@ 2021-05-27 17:11 ` Greg KH
2021-05-28 20:54 ` Hyeonggon Yoo
0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2021-05-27 17:11 UTC (permalink / raw)
To: Hyeonggon Yoo
Cc: Jiri Kosina, Benjamin Tissoires, linux-usb, linux-input, linux-kernel
On Fri, May 28, 2021 at 02:05:36AM +0900, Hyeonggon Yoo wrote:
> On Thu, May 27, 2021 at 06:54:07PM +0200, Greg KH wrote:
> > It has been only 4 days. For a non-bugfix and for something that is
> > only a "cleanup" change, give it at least 2 weeks please.
> >
> > Relax, there is no rush for stuff like this.
>
> Hello Greg!
>
> Okay You are right. I'll relax...
>
> I think I need to be familiar with the process :)
Please go read Documentation/process/ for all of that while you wait :)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible
2021-05-27 17:11 ` Greg KH
@ 2021-05-28 20:54 ` Hyeonggon Yoo
0 siblings, 0 replies; 6+ messages in thread
From: Hyeonggon Yoo @ 2021-05-28 20:54 UTC (permalink / raw)
To: Greg KH
Cc: Jiri Kosina, Benjamin Tissoires, linux-usb, linux-input, linux-kernel
On Thu, May 27, 2021 at 07:11:24PM +0200, Greg KH wrote:
> On Fri, May 28, 2021 at 02:05:36AM +0900, Hyeonggon Yoo wrote:
> > On Thu, May 27, 2021 at 06:54:07PM +0200, Greg KH wrote:
> > > It has been only 4 days. For a non-bugfix and for something that is
> > > only a "cleanup" change, give it at least 2 weeks please.
> > >
> > > Relax, there is no rush for stuff like this.
> >
> > Hello Greg!
> >
> > Okay You are right. I'll relax...
> >
> > I think I need to be familiar with the process :)
>
> Please go read Documentation/process/ for all of that while you wait :)
I'm reading it and Thanks for letting me know it.
it helps a lot... I should read it many times.
and the patch seems already applied to linux-next :)
Thanks,
Hyeonggon
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-05-28 20:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24 14:57 [PATCH] HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible Hyeonggon Yoo
2021-05-27 16:45 ` Hyeonggon Yoo
2021-05-27 16:54 ` Greg KH
2021-05-27 17:05 ` Hyeonggon Yoo
2021-05-27 17:11 ` Greg KH
2021-05-28 20:54 ` Hyeonggon Yoo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.