HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible
PATCH 1/1 HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible
probe in usb don't need to be atomic. So GFP_KERNEL can be used here, instead of GFP_ATOMIC.
--- drivers/hid/usbhid/usbmouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/usbhid/usbmouse.c +1 -1
@@ -130,7 +130,7 @@ static int usb_mouse_probe(struct usb_interface *intf, const struct usb_device_iif (!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;
Signature · 1 line
2.25.1
Quoted 24 lines · Hyeonggon Yoo
probe in usb don't need to be atomic. So
GFP_KERNELcan be used here, instead ofGFP_ATOMIC.Signed-off-by Hyeonggon Yoo <[email protected]>--- drivers/hid/usbhid/usbmouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/hid/usbhid/usbmouse.c +1
-1@@ -130,7 +130,7 @@ static int usb_mouse_probe(struct usb_interface *intf, const struct usb_device_iif (!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;Signature · 1 line
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
Greg KH
maintainerQuoted 22 lines · Hyeonggon Yoo
Quoted 21 lines · Hyeonggon Yoo
probe in usb don't need to be atomic. So
GFP_KERNELcan be used here, instead ofGFP_ATOMIC.Signed-off-by Hyeonggon Yoo <[email protected]>--- drivers/hid/usbhid/usbmouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/hid/usbhid/usbmouse.c +1
-1@@ -130,7 +130,7 @@ static int usb_mouse_probe(struct usb_interface *intf, const struct usb_device_iif (!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;
Quoted 6 lines
Quoted 3 lines
Signature · 1 line
2.25.1Hello 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
Quoted 4 lines · Greg KH
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
Greg KH
maintainerQuoted 11 lines · Hyeonggon Yoo
Quoted 4 lines · Greg KH
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 :)
Quoted 7 lines · Greg KH
Quoted 6 lines · Hyeonggon Yoo
Quoted 4 lines · Greg KH
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.
Quoted 7 lines
Quoted 5 lines
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