Skip to contentSkip to conversation

janitor: sched_timeout() sets curr_state (net/)

PATCH Applied Randy.Dunlap 2 participants 2 messages Oct 6, 2003 – Oct 7, 2003

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 janitor: sched_timeout() sets curr_state (net/)

Hi,
Please apply to 2.6.0-test6-current.

--
~Randy

From: Alexey Dobriyan <[email protected]>

 linux-260-test6-kj1-rddunlap/net/atm/resources.c        |    1 -
 linux-260-test6-kj1-rddunlap/net/bluetooth/hci_core.c   |    1 -
 linux-260-test6-kj1-rddunlap/net/ipv4/ipvs/ip_vs_sync.c |    2 --
 linux-260-test6-kj1-rddunlap/net/sunrpc/svcsock.c       |    1 -
 4 files changed, 5 deletions(-)
net/atm/resources.c renamed from net/atm/resources.c~net_all_taskrun +0 -1
diff -puN net/atm/resources.c~net_all_taskrun net/atm/resources.c
@@ -139,7 +139,6 @@ void atm_dev_deregister(struct atm_dev *
         while (atomic_read(&dev->refcnt) != 1) {
                 current->state = TASK_INTERRUPTIBLE;
                 schedule_timeout(HZ / 4);
-                current->state = TASK_RUNNING;
                 if ((jiffies - warning_time) > 10 * HZ) {
                         printk(KERN_EMERG "atm_dev_deregister: waiting for "
                                "dev %d to become free. Usage count = %d\n",
net/bluetooth/hci_core.c renamed from net/bluetooth/hci_core.c~net_all_taskrun +0 -1
diff -puN net/bluetooth/hci_core.c~net_all_taskrun net/bluetooth/hci_core.c
@@ -161,7 +161,6 @@ static int __hci_request(struct hci_dev 
 	req(hdev, opt);
 	schedule_timeout(timeout);
 
-	set_current_state(TASK_RUNNING);
 	remove_wait_queue(&hdev->req_wait_q, &wait);
 
 	if (signal_pending(current))
net/ipv4/ipvs/ip_vs_sync.c renamed from net/ipv4/ipvs/ip_vs_sync.c~net_all_taskrun +0 -2
diff -puN net/ipv4/ipvs/ip_vs_sync.c~net_all_taskrun net/ipv4/ipvs/ip_vs_sync.c
@@ -669,7 +669,6 @@ static void sync_master_loop(void)
 
 		__set_current_state(TASK_INTERRUPTIBLE);
 		schedule_timeout(HZ);
-		__set_current_state(TASK_RUNNING);
 	}
 
 	/* clean up the sync_buff queue */
@@ -728,7 +727,6 @@ static void sync_backup_loop(void)
 
 		__set_current_state(TASK_INTERRUPTIBLE);
 		schedule_timeout(HZ);
-		__set_current_state(TASK_RUNNING);
 	}
 
 	/* release the sending multicast socket */
net/sunrpc/svcsock.c renamed from net/sunrpc/svcsock.c~net_all_taskrun +0 -1
diff -puN net/sunrpc/svcsock.c~net_all_taskrun net/sunrpc/svcsock.c
@@ -1151,7 +1151,6 @@ svc_recv(struct svc_serv *serv, struct s
 		if (!p) {
 			set_current_state(TASK_UNINTERRUPTIBLE);
 			schedule_timeout(HZ/2);
-			current->state = TASK_RUNNING;
 			continue;
 		}
 		rqstp->rq_argpages[rqstp->rq_arghi++] = p;

_

#1 lore raw
Quoted 7 lines · On Sun, 5 Oct 2003 20:39:06 -0700 "Randy.Dunlap" <[email protected]> wrote:

From: Alexey Dobriyan <[email protected]>

 linux-260-test6-kj1-rddunlap/net/atm/resources.c        |    1 -
 linux-260-test6-kj1-rddunlap/net/bluetooth/hci_core.c   |    1 -
 linux-260-test6-kj1-rddunlap/net/ipv4/ipvs/ip_vs_sync.c |    2 --
 linux-260-test6-kj1-rddunlap/net/sunrpc/svcsock.c       |    1 -
 4 files changed, 5 deletions(-)

Applied, thanks Randy.