Re: [PATCHv2 2/8] fs/timerfd.c: make use of wait_event_interruptible_locked_irq()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Gleixner
Date: Sunday, April 11, 2010 - 7:31 am

On Fri, 9 Apr 2010, Michal Nazarewicz wrote:


And thereby breaks the code. :(


With this change we return -EAGAIN instead of -ERESTARTSYS when the
wait got interrupted by a signal. That means instead of restarting the
syscall we return -EAGAIN to user space.

You need to return that information from wait_event.....().

Thanks,

	tglx
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/7] The FunctionFS composite function, Michal Nazarewicz, (Fri Apr 9, 12:21 pm)
[PATCHv2 1/8] wait_event_interruptible_locked() interface, Michal Nazarewicz, (Fri Apr 9, 12:21 pm)
[PATCHv2 2/8] fs/timerfd.c: make use of wait_event_interru ..., Michal Nazarewicz, (Fri Apr 9, 12:21 pm)
[PATCHv2 3/8] USB: gadget: __init and __exit tags removed, Michal Nazarewicz, (Fri Apr 9, 12:21 pm)
[PATCHv2 4/8] USB: f_fs: the FunctionFS driver, Michal Nazarewicz, (Fri Apr 9, 12:21 pm)
[PATCHv2 5/8] USB: g_ffs: the FunctionFS gadget driver, Michal Nazarewicz, (Fri Apr 9, 12:21 pm)
[PATCHv2 6/8] USB: ffs-test: FunctionFS testing program, Michal Nazarewicz, (Fri Apr 9, 12:21 pm)
[PATCHv2 8/8] USB: testusb: testusb compatibility with Fun ..., Michal Nazarewicz, (Fri Apr 9, 12:21 pm)
Re: [PATCHv2 2/8] fs/timerfd.c: make use of wait_event_int ..., Thomas Gleixner, (Sun Apr 11, 7:31 am)
Re: [PATCHv2 2/8] fs/timerfd.c: make use of wait_event_int ..., Michal Nazarewicz, (Sun Apr 11, 12:16 pm)
Re: [PATCHv2 1/8] wait_event_interruptible_locked() interface, Michal Nazarewicz, (Sun Apr 11, 12:27 pm)
Re: [PATCHv2 3/8] USB: gadget: __init and __exit tags removed, Michal Nazarewicz, (Thu Apr 29, 4:02 pm)