lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <465DDE1D.3000809@cfl.rr.com>
Date:	Wed, 30 May 2007 16:27:09 -0400
From:	Phillip Susi <psusi@....rr.com>
To:	device-mapper development <dm-devel@...hat.com>
CC:	David Chinner <dgc@....com>, Tejun Heo <htejun@...il.com>,
	linux-kernel@...r.kernel.org, linux-raid@...r.kernel.org,
	Jens Axboe <jens.axboe@...cle.com>,
	linux-fsdevel@...r.kernel.org,
	Andreas Dilger <adilger@...sterfs.com>,
	Stefan Bader <Stefan.Bader@...ibm.com>
Subject: Re: [dm-devel] Re: [RFD] BIO_RW_BARRIER - what it means for devices,
 filesystems, and dm/md.

Phillip Susi wrote:
> Hrm... I may have misunderstood the perspective you were talking from. 
> Yes, when the bio is completed it must be on the media, but the 
> filesystem should issue both requests, and then really not care when 
> they complete.  That is to say, the filesystem should not wait for block 
> A to finish before issuing block B; it should issue both, and use 
> barriers to make sure they hit the disk in the correct order.

Actually now that I think about it, that wasn't correct.  The request 
CAN be completed before the data has hit the medium.  The barrier just 
constrains the ordering of the writes, but they can still sit in the 
disk write back cache for some time.

Stefan Bader wrote:
> That would be the exactly how I understand Documentation/block/barrier.txt:
> 
> "In other words, I/O barrier requests have the following two properties.
> 1. Request ordering
> ...
> 2. Forced flushing to physical medium"
> 
> "So, I/O barriers need to guarantee that requests actually get written
> to non-volatile medium in order." 

I think you misinterpret this, and it probably could be worded a bit 
better.  The barrier request is about constraining the order.  The 
forced flushing is one means to implement that constraint.  The other 
alternative mentioned there is to use ordered tags.  The key part there 
is "requests actually get written to non-volatile medium _in order_", 
not "before the request completes", which would be synchronous IO.

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ