ChangeSet 1.1982.39.11, 2005/02/10 14:22:20-05:00, [EMAIL PROTECTED]
apply patch from Nishanth Aravamudan <[EMAIL PROTECTED]> to use
sleep_interruptible for clarity and prevent early return on wait_queue
events.
Signed-off-by: Jody McIntyre <[EMAIL PROTECTED]>
sbp2.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff -Nru a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c
--- a/drivers/ieee1394/sbp2.c 2005-03-28 23:06:26 -08:00
+++ b/drivers/ieee1394/sbp2.c 2005-03-28 23:06:26 -08:00
@@ -905,9 +905,12 @@
* connected to the sbp2 device being removed. That host would
* have a certain amount of time to relogin before the sbp2 device
* allows someone else to login instead. One second makes sense. */
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(HZ);
-
+ msleep_interruptible(1000);
+ if (signal_pending(current)) {
+ sbp2_remove_device(scsi_id);
+ return -EINTR;
+ }
+
/*
* Login to the sbp-2 device
*/
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html