Re: dm: dm-cache fails to write the cache device in writethrough mode

2013-03-23 Thread Mike Snitzer
On Sat, Mar 23 2013 at 5:08pm -0400, Mike Snitzer wrote: > But even after having changed my test to use /dev/sdb for the origin > device I cannot reproduce the problem you've reported. Do you have any > further details on how/why the bios are being altered? Are you > reliably hitting partial

Re: dm: dm-cache fails to write the cache device in writethrough mode

2013-03-23 Thread Mike Snitzer
On Sat, Mar 23 2013 at 1:15am -0400, Darrick J. Wong wrote: > On Fri, Mar 22, 2013 at 11:27:16PM -0400, Mike Snitzer wrote: > > On Fri, Mar 22 2013 at 7:16pm -0400, > > Darrick J. Wong wrote: > > > > > On Fri, Mar 22, 2013 at 06:34:28PM -0400, Mike Snitzer wrote: > > > > On Fri, Mar 22 2013 a

Re: dm: dm-cache fails to write the cache device in writethrough mode

2013-03-22 Thread Mike Snitzer
On Fri, Mar 22 2013 at 7:16pm -0400, Darrick J. Wong wrote: > On Fri, Mar 22, 2013 at 06:34:28PM -0400, Mike Snitzer wrote: > > On Fri, Mar 22 2013 at 4:11pm -0400, > > Darrick J. Wong wrote: > > > > > The new writethrough strategy for dm-cache issues a bio to the origin > > > device, > > >

Re: dm: dm-cache fails to write the cache device in writethrough mode

2013-03-22 Thread Mike Snitzer
On Fri, Mar 22 2013 at 4:11pm -0400, Darrick J. Wong wrote: > The new writethrough strategy for dm-cache issues a bio to the origin device, > remaps the bio to the cache device, and issues the bio to the cache device. > However, the block layer modifies bi_sector and bi_size, so we need to > pr

Re: dm: dm-cache fails to write the cache device in writethrough mode

2013-03-22 Thread Mike Snitzer
On Fri, Mar 22 2013 at 4:50pm -0400, Darrick J. Wong wrote: > On Fri, Mar 22, 2013 at 08:21:56PM +, Ben Hutchings wrote: > > On Fri, 2013-03-22 at 13:11 -0700, Darrick J. Wong wrote: > > > The new writethrough strategy for dm-cache issues a bio to the origin > > > device, > > > remaps the b