Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934627AbbEOPKa (ORCPT ); Fri, 15 May 2015 11:10:30 -0400 Received: from hank.reardencode.com ([206.125.169.162]:39468 "EHLO hank.reardencode.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754261AbbEOPK0 (ORCPT ); Fri, 15 May 2015 11:10:26 -0400 X-Greylist: delayed 313 seconds by postgrey-1.27 at vger.kernel.org; Fri, 15 May 2015 11:10:26 EDT Date: Fri, 15 May 2015 08:04:42 -0700 From: Brandon Smith To: Abelardo Ricart III Cc: Mike Snitzer , dm-devel@redhat.com, mpatocka@redhat.com, linux-kernel@vger.kernel.org Subject: Re: Regression: Disk corruption with dm-crypt and kernels >= 4.0 Message-ID: <20150515150442.GB35834@hank.reardencode.com> Mail-Followup-To: Abelardo Ricart III , Mike Snitzer , dm-devel@redhat.com, mpatocka@redhat.com, linux-kernel@vger.kernel.org References: <1430455027.7012.32.camel@memnix.com> <20150501211703.GA15030@redhat.com> <1430519090.5537.4.camel@memnix.com> <1430523735.5352.1.camel@memnix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1430523735.5352.1.camel@memnix.com> X-Operating-System: FreeBSD 10.1-RELEASE-p5 amd64 User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1701 Lines: 37 On 2015-05-01 (Fri) at 19:42:15 -0400, Abelardo Ricart III wrote: > > > The patchset in question was tested quite heavily so this is a > > > surprising report. I'm noticing you are opting in to dm-crypt discard > > > support. Have you tested without discards enabled? > > > > I've disabled discards universally and rebuilt a vanilla kernel. After running > > my heavy read-write-sync scripts, everything seems to be working fine now. I > > suppose this could be something that used to fail silently before, but now > > produces bad behavior? I seem to remember having something in my message log > > about "discards not supported on this device" when running with it enabled > > before. > > Forgive me, but I spoke too soon. The corruption and libata errors are still > there, as was evidenced when I went to reboot and got treated to an eye full of > "read-only filesystem" and ata errors. > > So no, disabling discards unfortunately did nothing to help. I've been experiencing the same problem. Vanilla 4.0 series kernels, dm-crypt, with/or without discards, on a ThinkPad X1 Carbon with a LiteOn LGT-256M6G SSD. After some of googling around, I found some chatter relating to changes in NCQ on SSDs in 4.0. Been running w/o NCQ for a full kernel build so far without issue. Perhaps there's been some change in the interaction between dm-crypt and NCQ? Abelardo, can you try w/o NCQ and see if that helps your situation? Best, --Brandon -- 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/