From: Henrique de Moraes Holschuh Date: Tue, 30 Oct 2007 19:46:24 +0000 (-0200) Subject: ACPI: thinkpad-acpi: allow for syscall restart in sysfs handlers X-Git-Tag: v2.6.24-rc4~107^2~3^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc589a3ce5f38db6239c147da4f9172a25575ecc;p=pandora-kernel.git 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 Cc: Jean Delvare Cc: Peter Jordan Cc: Richard Neill Signed-off-by: Len Brown --- Reading git-diff-tree failed