Skip to contentSkip to conversation

usb/dabusb: replace

PATCH New Nishanth Aravamudan 1 participant 1 message Sep 27, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/9 usb/dabusb: replace

Any comments would be appreciated.

Description: Use msleep_interruptible() instead of schedule_timeout() so that the task delays as expected.

drivers/usb/media/dabusb.c +1 -1
@@ -598,7 +598,7 @@ static int dabusb_open (struct inode *in
 		if (file->f_flags & O_NONBLOCK) {
 			return -EBUSY;
 		}
-		schedule_timeout (HZ / 2);
+		msleep_interruptible (500);
 
 		if (signal_pending (current)) {
 			return -EAGAIN;

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors