Skip to contentSkip to conversation

replace current->state = x with set_current_state(x) in drivers/atm/* [2.6.0-test1]

PATCH chas williams 2 participants 2 messages Jul 29, 2003 – Jul 30, 2003 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

dave, please apply this to the 2.6 tree.

Quoted 4 lines · In message <[email protected]>,Daniele Bellucci writes:

Hi Chas,
ACME told me to post my patches to you ....

please tell'me if correct.

[atm]: use set_current_state(x) (from [email protected])

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.1598 -> 1.1599
# drivers/atm/firestream.c 1.18 -> 1.19
# drivers/atm/atmtcp.c 1.15 -> 1.16
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/07/29 [email protected] 1.1599

# use set_current_state(x) (from [email protected])
# --------------------------------------------
#
diff -Nru a/drivers/atm/atmtcp.c b/drivers/atm/atmtcp.c
--- a/drivers/atm/atmtcp.c	Tue Jul 29 13:41:18 2003
+++ b/drivers/atm/atmtcp.c	Tue Jul 29 13:41:18 2003
@@ -77,7 +77,7 @@
 		set_current_state(TASK_UNINTERRUPTIBLE);
 		schedule();
 	}
-	current->state = TASK_RUNNING;
+	set_current_state(TASK_RUNNING);
 	remove_wait_queue(vcc->sk->sk_sleep, &wait);
 	return error;
 }
diff -Nru a/drivers/atm/firestream.c b/drivers/atm/firestream.c
--- a/drivers/atm/firestream.c	Tue Jul 29 13:41:18 2003
+++ b/drivers/atm/firestream.c	Tue Jul 29 13:41:18 2003
@@ -1722,7 +1722,7 @@
 		}

/* Try again after 10ms. */
- current->state = TASK_UNINTERRUPTIBLE;
+ set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout ((HZ+99)/100);
}