lkml.org 
[lkml]   [2000]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: invalidate_buffers() not working?
Andrea Arcangeli wrote:
>
> On Sat, 4 Mar 2000, Tigran Aivazian wrote:
>
> > d) now comes the interesting bit. Even after all the buffers have been
> >invalidated, those threads still continue happily reading and claiming
> >that the data is correct (i.e. as in the old disk).
>
> What do you mean with "claim". You never check the contents of the
> bh->b_data that you get from bread.

I do, in the thread_work_slow() version, i.e. The test1.c I released
happen to
call thread_work_fast() but I assume it is obvious that one just
switched to the slow version if needed (otherwise why would it be there
:)


> Anyway you should always call the bd_op->open/release of the blockdevice
> before/after calling bread/brelse. All the media_change stuff is done at
> blockdevice open time. If you don't open it, the media_change won't be
> detected.

Ah, I see. Thank you, that answers my question.

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