Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935797AbcJUVLi (ORCPT ); Fri, 21 Oct 2016 17:11:38 -0400 Received: from arcturus.aphlor.org ([188.246.204.175]:40022 "EHLO arcturus.aphlor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933528AbcJUVLd (ORCPT ); Fri, 21 Oct 2016 17:11:33 -0400 Date: Fri, 21 Oct 2016 17:11:02 -0400 From: Dave Jones To: Josef Bacik Cc: Chris Mason , Andy Lutomirski , Andy Lutomirski , Linus Torvalds , Jens Axboe , Al Viro , David Sterba , linux-btrfs , Linux Kernel Subject: Re: bio linked list corruption. Message-ID: <20161021211102.emoxdpfr635ujtxb@codemonkey.org.uk> Mail-Followup-To: Dave Jones , Josef Bacik , Chris Mason , Andy Lutomirski , Andy Lutomirski , Linus Torvalds , Jens Axboe , Al Viro , David Sterba , linux-btrfs , Linux Kernel References: <332c8e94-a969-093f-1fb4-30d89be8993e@kernel.org> <20161020225028.czodw54tjbiwwv3o@codemonkey.org.uk> <20161020230341.jsxpia2sy53xn5l5@codemonkey.org.uk> <20161021200245.kahjzgqzdfyoe3uz@codemonkey.org.uk> <20161021202325.q6uh7k2pgnv276rg@codemonkey.org.uk> <0cbc7ee4-9268-9765-dde7-1e28c4cdf8f0@fb.com> <411b54cd-c23c-765a-9547-0b43bf422546@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <411b54cd-c23c-765a-9547-0b43bf422546@fb.com> User-Agent: NeoMutt/20161014 (1.7.1) X-Spam-Flag: skipped (authorised relay user) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 798 Lines: 24 On Fri, Oct 21, 2016 at 04:41:09PM -0400, Josef Bacik wrote: > >> > > >> > btrfs inspect inode 130654 mntpoint > >> > >> Interesting, they all return > >> > >> ERROR: ino paths ioctl: No such file or directory > >> > >> So these files got deleted perhaps ? > >> > > Yeah, they must have. > > > > So one thing that will cause spurious csum errors is if you do things like > change the memory while it is in flight during O_DIRECT. Does trinity do that? > If so then that would explain it. If not we should probably dig into it. Thanks, Yeah, that's definitely possible. And it wasn't that long ago I added some code to always open testfiles multiple times with different modes, so the likely of O_DIRECT went up. That would explain why I've started seeing this more. Dave