lkml.org 
[lkml]   [1999]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: move block #A to block #B on a given device.
On Fri, 5 Nov 1999, Mikulas Patocka wrote:
> > > I think doing pure getblk is wrong (someone else can call bread and
> > > overwrite data in buffer). There should be bh = getblk();
> > > mark_buffer_uptodate(bh, 1)
> >
> > Yes, of course. Also
>
> BTW. neither getblk nor mark_buffer_uptodate check for i/o completion.
> Isn't it race? Many filesystem do it this way.

io? What io? The only io that getblk() generates is if it wakes up bdflush
to refill the freelist. There is no io on the blk that is specified to
getblk, I thought.

Regards,
Tigran.


-
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:54    [from the cache]
©2003-2011 Jasper Spaans