Henrique de Moraes Holschuh fc589a3ce5 ACPI: thinkpad-acpi: allow for syscall restart in sysfs handlers
Map an mutex_lock_interruptible() error return into ERESTARTSYS, as the
only possible error from mutex_lock_interruptible is EINTR, and that will
only happen if signal_pending() causes the mutex lock attempt to abort.

This still allows signals to be delivered ASAP, which is much nicer than
just doing mutex_lock, and still shadows userspace from EINTR when
SA_RESTART is active.

Problem reported by Peter Jordan.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Peter Jordan <usernetwork@gmx.info>
Cc: Richard Neill <rn214@hermes.cam.ac.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
2007-11-05 13:07:11 -05:00
..
2007-10-17 08:42:52 -07:00
2007-11-02 08:47:06 +01:00
2007-10-29 11:33:05 +01:00
2007-10-29 17:27:50 -04:00
2007-10-16 09:43:09 -07:00
2007-10-19 11:53:42 -07:00
2007-10-20 01:34:40 +02:00
2007-10-20 01:55:58 +02:00
2007-10-25 15:02:50 +10:00
2007-11-02 08:47:25 +01:00
2007-11-02 08:47:06 +01:00
2007-10-20 01:34:40 +02:00
2007-11-02 08:47:06 +01:00
2007-10-23 09:49:31 +02:00
2007-10-30 08:06:55 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-20 15:04:06 -07:00
2007-10-30 09:56:40 +09:00
2007-10-29 07:41:33 -07:00
2007-10-16 21:04:11 -04:00
2007-10-17 08:42:57 -07:00
2007-11-02 08:47:06 +01:00
2007-10-23 15:49:54 +10:00