lkml.org 
[lkml]   [2000]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateThu, 24 Feb 2000 16:38:00 +0100 (CET)
FromIngo Molnar <>
SubjectRe: lowlatency-2.2.14-B1 + 2.2.14aa7 fixes crash, but...

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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [from the cache]
©2003-2010