Re: [PATCH] Useless inode semaphore locking in 2.4.0-test8

From: Alexander Viro (viro@math.psu.edu)
Date: Tue Sep 19 2000 - 06:45:43 EDT

  • Next message: Peter Steiner: "Re: [oops] test9pre2 / sb"

    On Tue, 19 Sep 2000, Stephen C. Tweedie wrote:

    > > ?
    > > I'm afraid that I've lost you here - what do you mean?
    >
    > loop does a bmap() and then submits block IO. You don't want
    > truncate() to revoke blocks in between the bmap and the IO completion.

    It used to do bmap(), but unless somebody restored that bogosity it
    shouldn't do that anymore. It gets page, locks it, does prepare_write(),
    copies the data, does commit_write() and unlocks the page - same as
    generic_file_write(). So that shouldn't be a problem - truncate would have
    to wait until the page gets unlocked.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Tue Sep 19 2000 - 06:48:36 EDT