From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:50717 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935068AbcJZXW7 (ORCPT ); Wed, 26 Oct 2016 19:22:59 -0400 Subject: Re: bio linked list corruption. To: Chris Mason , Linus Torvalds , Dave Jones , Andy Lutomirski , Andy Lutomirski , Al Viro , "Josef Bacik" , David Sterba , linux-btrfs , Linux Kernel , Dave Chinner References: <20161026184201.6ofblkd3j5uxystq@codemonkey.org.uk> <488f9edc-6a1c-2c68-0d33-d3aa32ece9a4@fb.com> <20161026224025.mou27kki4bslftli@codemonkey.org.uk> <2bdc068d-afd5-7a78-f334-26970c91aaca@fb.com> <20161026231950.GB15247@clm-mbp.thefacebook.com> From: Jens Axboe Message-ID: <2951bc27-2453-203a-009d-260bccf2d038@fb.com> Date: Wed, 26 Oct 2016 17:21:22 -0600 MIME-Version: 1.0 In-Reply-To: <20161026231950.GB15247@clm-mbp.thefacebook.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Sender: linux-btrfs-owner@vger.kernel.org List-ID: On 10/26/2016 05:19 PM, Chris Mason wrote: > On Wed, Oct 26, 2016 at 05:03:45PM -0600, Jens Axboe wrote: >> On 10/26/2016 04:58 PM, Linus Torvalds wrote: >>> On Wed, Oct 26, 2016 at 3:51 PM, Linus Torvalds >>> wrote: >>>> >>>> Dave: it might be a good idea to split that "WARN_ON_ONCE()" in >>>> blk_mq_merge_queue_io() into two >>> >>> I did that myself too, since Dave sees this during boot. >>> >>> But I'm not getting the warning ;( >>> >>> Dave gets it with ext4, and thats' what I have too, so I'm not sure >>> what the required trigger would be. >> >> Actually, I think I see what might trigger it. You are on nvme, iirc, >> and that has a deep queue. Dave, are you testing on a sata drive or >> something similar with a shallower queue depth? If we end up sleeping >> for a request, I think we could trigger data->ctx being different. >> >> Dave, can you hit the warnings with this? Totally untested... > > Confirmed, totally untested ;) Don't try this one at home folks > (working this out with Jens offlist) Ahem, I did say untested! The one I just sent in reply to Linus should be better. Though that one is completely untested as well... -- Jens Axboe