Re: [dm-devel] [PATCH 2/2] dmcache: Implement a flush message

2013-05-13 Thread Darrick J. Wong
On Mon, May 13, 2013 at 02:04:08PM +0200, Peter Rajnoha wrote: > On 11.05.2013 17:25, Mike Snitzer wrote:> On Fri, May 10 2013 at 1:51pm > -0400, > > Darrick J. Wong wrote: > > > ... > >> afaict, there isn't anything in the initscripts that tears down dm > devices > >> prior to invoking reboot(),

Re: [PATCH 2/2] dmcache: Implement a flush message

2013-05-13 Thread Peter Rajnoha
On 11.05.2013 17:25, Mike Snitzer wrote:> On Fri, May 10 2013 at 1:51pm -0400, > Darrick J. Wong wrote: > ... >> afaict, there isn't anything in the initscripts that tears down dm devices >> prior to invoking reboot(), and the kernel drivers don't have reboot notifiers >> to flush things out eith

Re: [PATCH 2/2] dmcache: Implement a flush message

2013-05-11 Thread Mike Snitzer
[in the future please refrain from posting to LKML for such a narrow topic like dm-cache... not seeing the point in adding to the LKML noise -- dm-devel should suffice] On Fri, May 10 2013 at 1:51pm -0400, Darrick J. Wong wrote: > On Fri, May 10, 2013 at 11:22:24AM +0100, Joe Thornber wrote: >

Re: [dm-devel] [PATCH 2/2] dmcache: Implement a flush message

2013-05-10 Thread Darrick J. Wong
On Fri, May 10, 2013 at 11:22:24AM +0100, Joe Thornber wrote: > On Thu, May 09, 2013 at 01:47:51PM -0700, Darrick J. Wong wrote: > > Create a new 'flush' message that causes the dmcache to write all of its > > metadata out to disk. This enables us to ensure that the disk reflects > > whatever's in

Re: [dm-devel] [PATCH 2/2] dmcache: Implement a flush message

2013-05-10 Thread Joe Thornber
On Thu, May 09, 2013 at 01:47:51PM -0700, Darrick J. Wong wrote: > Create a new 'flush' message that causes the dmcache to write all of its > metadata out to disk. This enables us to ensure that the disk reflects > whatever's in memory without having to tear down the cache device. This helps > me

[PATCH 2/2] dmcache: Implement a flush message

2013-05-09 Thread Darrick J. Wong
Create a new 'flush' message that causes the dmcache to write all of its metadata out to disk. This enables us to ensure that the disk reflects whatever's in memory without having to tear down the cache device. This helps me in the case where I have a cached ro fs that I can't umount and therefor