]> git.hungrycats.org Git - linux/commitdiff
Use cond_sched() instead of manual expansion of it.
authorLinus Torvalds <torvalds@home.transmeta.com>
Mon, 10 Mar 2003 15:39:34 +0000 (07:39 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 10 Mar 2003 15:39:34 +0000 (07:39 -0800)
fs/namei.c

index 24bf596c55b157358f2aeb012b713469b32dc121..d9c1748ff7aaaa875cc370c568e88ddb71697d4a 100644 (file)
@@ -398,10 +398,7 @@ static inline int do_follow_link(struct dentry *dentry, struct nameidata *nd)
                goto loop;
        if (current->total_link_count >= 40)
                goto loop;
-       if (need_resched()) {
-               current->state = TASK_RUNNING;
-               schedule();
-       }
+       cond_resched();
        err = security_inode_follow_link(dentry, nd);
        if (err)
                goto loop;