Re: invalidate_buffers() not working?

From: Andrea Arcangeli (andrea@suse.de)
Date: Sat Mar 04 2000 - 16:22:52 EST

  • Next message: Jeff Garzik: "Re: system doesn't shut down"

    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.

    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.

    Andrea

    -
    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 : Sat Mar 04 2000 - 16:41:24 EST