+ hid-read-busywait-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     HID read busywait fix

has been added to the -mm tree.  Its filename is

     hid-read-busywait-fix.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: "Micon, David" <DMicon@xxxxxxxxx>

Make a read of a HID device block until data is available.  Without it, the
read goes into a busy-wait loop until data is available.

Cc: Greg KH <greg@xxxxxxxxx>
Cc: Vojtech Pavlik <vojtech@xxxxxxx>
Cc: Dmitry Torokhov <dtor_core@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/usb/input/hiddev.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN drivers/usb/input/hiddev.c~hid-read-busywait-fix drivers/usb/input/hiddev.c
--- devel/drivers/usb/input/hiddev.c~hid-read-busywait-fix	2006-05-15 21:47:11.000000000 -0700
+++ devel-akpm/drivers/usb/input/hiddev.c	2006-05-15 21:47:11.000000000 -0700
@@ -317,6 +317,7 @@ static ssize_t hiddev_read(struct file *
 				}
 
 				schedule();
+				set_current_state(TASK_INTERRUPTIBLE);
 			}
 
 			set_current_state(TASK_RUNNING);
_

Patches currently in -mm which might be from DMicon@xxxxxxxxx are

hid-read-busywait-fix.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux