Re: [v2 PATCH 1/1] mtd: mtd_blkdevs: handle REQ_FLUSH request and do explicit flush of writeback buffer

2014-04-15 Thread Brian Norris
On Sat, Mar 08, 2014 at 09:59:14PM +0900, Roman Pen wrote: > From: Roman Peniaev > > mtd_blkdevs is device with volatile cache (writeback buffer), so it should > support > REQ_FLUSH to do explicit flush. > > Without this patch 'sync' does not guarantee that writeback buffer will be > flushed >

[v2 PATCH 1/1] mtd: mtd_blkdevs: handle REQ_FLUSH request and do explicit flush of writeback buffer

2014-03-08 Thread Roman Pen
From: Roman Peniaev mtd_blkdevs is device with volatile cache (writeback buffer), so it should support REQ_FLUSH to do explicit flush. Without this patch 'sync' does not guarantee that writeback buffer will be flushed on disk in case of power off, e.g.: $ cp some_file /mnt $ sync ### P