On Thu, 24 Feb 2000, William Montgomery wrote:
> > something like:
> >
> > + if (current->need_resched) {
> > + INODE(tmp)->i_count++;
> > + spin_unlock(&inode_lock);
> > + schedule();
> > + iput(tmp);
> > + goto repeat;
> >
> > is there any problem with this?
> >
> Two questions:
> 1) where does repeat label go?
(to the place which reloads the list pointer from the global list head.)
> 2) since there is a INODE(tmp)->i_count++ dont we also need a i_count--?
it's implicit in iput().
-- mingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:10 EST