Re: [PATCH] barrier patch set

From: Jeff Garzik (jgarzik_at_pobox.com)
Date: 03/31/04

  • Next message: Randy.Dunlap: "Re: finding out the value of HZ from userspace"
    Date:	Wed, 31 Mar 2004 16:27:32 -0500
    To: "Stephen C. Tweedie" <sct@redhat.com>
    
    

    Stephen C. Tweedie wrote:
    > Hi,
    >
    > On Tue, 2004-03-30 at 23:21, Jeff Garzik wrote:
    >
    >
    >>For IDE, O_DIRECT and O_SYNC can use special "FUA" commands, which don't
    >>return until the data is on the platter.
    >
    >
    > fsync() is still really nasty, because that can require that we wait on
    > IO that was submitted by the VM before we knew that there was a
    > synchronous IO wait coming. SCSI also has an FUA bit that can make a
    > difference if you've got writeback caching enabled. (And FUA on read
    > can bypass drive writethrough caches, too, for media verification.)

    Agreed, but I did not mention fsync(), since that would not be
    appropriate to FUA like O_DIRECT or O_SYNC might be.

            Jeff

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


  • Next message: Randy.Dunlap: "Re: finding out the value of HZ from userspace"

    Relevant Pages

    • Re: [PATCH] barrier patch set
      ... fsync() is still really nasty, because that can require that we wait on ... (And FUA on read ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] barrier patch set
      ... >> return until the data is on the platter. ... > fsyncis still really nasty, because that can require that we wait on ... fsync or O_SYNC without using it for every write. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux does not care for data integrity
      ... >>And the app could use fsync to force order of write as needed. ... than syscalls and physical operations. ... some of the data coherency issues. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [PATCH] Laptop-mode v7 for linux 2.6.1
      ... >> Is this a problem with reiserfs or with kde and is there any fix available? ... Won't help him if kdeinit is doing fsync() on every friggind write. ... syslog has an option to disable that, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: XFS: how to NOT null files on fsck?
      ... that closing a tempfile and then renaming the file is not ... closewill flush the C library buffer. ... If you want the pagecache flushed to disk, use fsync ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)