lkml.org 
[lkml]   [1999]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [replace-alexv-buffer.c-patch] Re: [PATCH] Several bad bugs in fs/*


On Fri, 23 Apr 1999, Andrea Arcangeli wrote:

> On Thu, 22 Apr 1999, Alexander Viro wrote:
>
> > What the... Wait a bit. How and when can ->b_list become *not*
> >corrsponding to the list where the buffer sits, anyway?
>
> Think if nextbh is a clean buffer not belonging to the dev that is
> changing blocksize.

Oh, I see. The problem being not that we can get the buffer on the
wrong list but that we can wander into the wrong list ourselves...
Ho-hummm... Methink your solution is wrong, though. Better one:
do non-blocking scan of the lists, gathering the stuff that
should die into the separate (local) list.
while the list is non-empty
pick the first buffer,
wait_on_buffer
move it to free list.
Comments? I'm more worried about the loop device handling...


-
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:51    [W:0.115 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site