Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423062Ab3CVVf6 (ORCPT ); Fri, 22 Mar 2013 17:35:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39017 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422950Ab3CVVf4 (ORCPT ); Fri, 22 Mar 2013 17:35:56 -0400 Date: Fri, 22 Mar 2013 17:35:43 -0400 From: Mike Snitzer To: "Darrick J. Wong" Cc: Ben Hutchings , Linus Torvalds , dm-devel@redhat.com, linux-kernel@vger.kernel.org, Heinz Mauelshagen , Joe Thornber , Mikulas Patocka , Paul Taysom , Randy Dunlap , stable@vger.kernel.org Subject: Re: dm: dm-cache fails to write the cache device in writethrough mode Message-ID: <20130322213543.GA5849@redhat.com> References: <20130322201151.GB5357@blackbox.djwong.org> <1363983716.3728.42.camel@deadeye.wl.decadent.org.uk> <20130322205005.GD5371@blackbox.djwong.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130322205005.GD5371@blackbox.djwong.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1550 Lines: 32 On Fri, Mar 22 2013 at 4:50pm -0400, Darrick J. Wong wrote: > On Fri, Mar 22, 2013 at 08:21:56PM +0000, 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 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 preserve > > > these or else nothing gets written to the cache (bi_size == 0). This fixes the > > > problem where someone writes a block through the cache, but a subsequent reread > > > (from the cache) returns old contents. > > > > > > Signed-off-by: Darrick J. Wong > > > --- > > [...] > > > > This is not the correct way to submit a change to stable. See > > Documentation/stable_kernel_rules.txt > > Frankly, I'm not sure why agk sent the 3.9-fixes pull request to -stable. 7 of > the 10 commits are for dm-cache, and dm-cache is a new feature for 3.9. I > probably could have dropped -stable from the cc: list when I started > complaining about bugs. :) Alasdair's pull mail was sent to stable because commit f046f89a99c ("dm thin: fix discard corruption") cc'd stable and was included in the pull request. -- 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/