[prev in list] [next in list] [prev in thread] [next in thread]
List: kernel-janitors
Subject: [PATCH] fs/devfs/base.c - Use the task state macros provided in
From: Ryan Bradetich <rbradetich () uswest ! net>
Date: 2002-07-20 5:36:27
[Download RAW message or body]
Hello Janitors,
This patch is the second of many patches to convert task state
changes to use the macros provided in include/linux/sched.h.
This is against kernel 2.5.26.
I have not done any testing other then to verify it compiles.
Thanks,
- Ryan
--- fs/devfs/base.c.orig Fri Jul 19 23:21:28 2002
+++ fs/devfs/base.c Fri Jul 19 23:27:41 2002
@@ -1447,11 +1447,11 @@
if (devfsd_queue_empty (fs_info) && fs_info->devfsd_sleeping) return TRUE;
if ( is_devfsd_or_child (fs_info) ) return (FALSE);
add_wait_queue (&fs_info->revalidate_wait_queue, &wait);
- current->state = TASK_UNINTERRUPTIBLE;
+ __set_current_state (TASK_UNINTERRUPTIBLE);
if (!devfsd_queue_empty (fs_info) || !fs_info->devfsd_sleeping)
if (fs_info->devfsd_task) schedule ();
remove_wait_queue (&fs_info->revalidate_wait_queue, &wait);
- current->state = TASK_RUNNING;
+ __set_current_state (TASK_RUNNING);
return (TRUE);
} /* End Function wait_for_devfsd_finished */
@@ -2944,7 +2944,7 @@
if (dentry->d_fsdata)
{
add_wait_queue (&lookup_info->wait_queue, &wait);
- current->state = TASK_UNINTERRUPTIBLE;
+ __set_current_state (TASK_UNINTERRUPTIBLE);
read_unlock (&parent->u.dir.lock);
schedule ();
}
@@ -3306,7 +3306,7 @@
info->minor = 0;
/* Block for a new entry */
add_wait_queue (&fs_info->devfsd_wait_queue, &wait);
- current->state = TASK_INTERRUPTIBLE;
+ __set_current_state (TASK_INTERRUPTIBLE);
while ( devfsd_queue_empty (fs_info) )
{
fs_info->devfsd_sleeping = TRUE;
@@ -3316,13 +3316,13 @@
if ( signal_pending (current) )
{
remove_wait_queue (&fs_info->devfsd_wait_queue, &wait);
- current->state = TASK_RUNNING;
+ __set_current_state (TASK_RUNNING);
return -EINTR;
}
set_current_state (TASK_INTERRUPTIBLE);
}
remove_wait_queue (&fs_info->devfsd_wait_queue, &wait);
- current->state = TASK_RUNNING;
+ __set_current_state (TASK_RUNNING);
/* Now play with the data */
ival = atomic_read (&fs_info->devfsd_overrun_count);
info->overrun_count = ival;
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Kernel-janitor-discuss mailing list
Kernel-janitor-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kernel-janitor-discuss
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic