Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938502AbcJ0QhP (ORCPT ); Thu, 27 Oct 2016 12:37:15 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:34653 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933101AbcJ0QhL (ORCPT ); Thu, 27 Oct 2016 12:37:11 -0400 Subject: Re: bio linked list corruption. To: Linus Torvalds , Christoph Hellwig 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> <20161027063356.GA547@infradead.org> CC: Dave Jones , Chris Mason , "Andy Lutomirski" , Andy Lutomirski , Al Viro , Josef Bacik , David Sterba , linux-btrfs , Linux Kernel , Dave Chinner From: Jens Axboe Message-ID: <59242003-714a-028d-95f1-d313658f9a6f@fb.com> Date: Thu, 27 Oct 2016 10:36:16 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [216.160.245.98] X-ClientProxiedBy: MWHPR13CA0035.namprd13.prod.outlook.com (10.173.117.149) To MWHPR15MB1197.namprd15.prod.outlook.com (10.175.2.139) X-MS-Office365-Filtering-Correlation-Id: 292ec831-0f6b-4e0c-389a-08d3fe876229 X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1197;2:uN9pPCtmIAPppWkqeI4ZaQ4/3tQ8zHTt8K5hgHewDbUZsPB5FOHzNDdYZ+vnp8A/YWvuIdTxfjDalqhsbpAHzbbopmA7sitYuJVl/Zu6RlgzU9vHWZdDbI8SjCWAuGPLJprE2bzOBevPO3+9pyf73IcJM49B9K0P7+y9/cEEbbpK8k+wt07M3g923yDan3yn+KQQsWDr4McsqyT3OIv2Dg==;3:rxr8/mzE+X4vo25komnKArouXkz/fi6G4b/Elrif6AKUu4hA8q3M0iEGxK7DeAs4WOeue/q4zrqvR6eVf3PA50hygcddjePHuZh3YlgUFXM30cQmVPOmqRBUjr+KwzT6H6US2h0NWQJaWwuqxp9XPA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:MWHPR15MB1197; X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1197;25:DvEbo5dB2+xh1a6BGSK1rxqQrZelWyypBoFQatM3ico5jlDTfhZwqnYcC8cc5khxnj5D69wAcm7LtTSGpEqwmjA04aPDyX9Jw5/aR5OQ6u4quwAMB/F+650IAcj925YoZuquzTbc5UPGh8wkzZzzEWtI0f+h4Ib1OahCHcSn+rcGUe3X9Ap1Su1NESYs3G8O5LzxJ3fF8tO3Ccltd5tGnCD0I0BV3QR0RH4I88RMWMyNn64f/Ja/1gz5HdHLvfNAHhTmExHm49uNAPo144fr38wzzJiXfLS6A8GF3ptgH1gLSHT2x5J+iNhdrlChqNH2dvvRa/IR7jNv3keYbX1SjV/oDSVgQvbE2PWnVTcJ4c3p5iKZOW06rBYBjvDtncOX8uGoDnVJh6Yo4AYigRFM3RamAtFueUFdBudy17wvpjGGHQx4VQR2zKd+JlDspEfmYuFse0IhGKp1z0VF+YK3W1JNGL/Dsw8QjqqlpEQJ5wEdBLVRj7G4iK/5yB/ghsnuSYOOo7+V1adTnWaX1dFmpn4XbEfkVUYlavLmK8J0lugsxHoKnaOqW987for8BYHdjcRUdYz5r1zIjrFYIvolv9li7KPCdC+Vf0CIyzHbqURv1SS+oNjOh5r13xdB8GaSwZ+foyFSon5Edt0z8X5vQSlaQx/rK/bM8+4TPJLGAanOmp4yYmzQXcYETipM2CTaa27qX/aKMWj7KlSs7pxot0aCUO7cYDBDD08OxilcgtU= X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1197;31:ucocKAOFdbVSHuga+EsMzd7LPDTpRG8FD6W1/EG09ZWsEZnoAk3lcTf/hx0jK50YhhGeVCb+i8HqQUcJak+Q9xI0pDAD7HwZ5Y5KLCDcOgdF1I9JXXCyGtAm0FhhdWDrBL0XJaQa3yEPN/U858ia2PP5DKQKWBRoQd6O72/47a0WYQH8vHsTD3U+OtFGbkmcpfD8W7Is2+38mxj0pJ7IhLsvXzP/URsSc95VQpKl2lrYFdfS52dnBl38/HO7srOlt605rUUoidwZuk0JcH74WA==;20:LTjSMpEFx/04jzzh6Riax054OYL/ciDL4zDOwDqW0jXPO+bYBIzEinOXtgVubbEuRTDBRv+t0lHOCxiK245L0c/L7lVi5b0mp/nrgzEHbAxUyhAhxeBo5b4hKcNK/LYwewd/eh26XuaqfoUNuX75tkjjXHiuxyCL0qOq1DJJujQ=;4:Zzt+2/M3x5ym4GkAFLMzI4CTefqKZZ+ESp9ig+hkJaC8sXtmYZyHtoKC6+JwjBK3mYZEIv3z28V/4BK7YmKXdfxzYxcPNJiSgJuAfx+E68ije+UNUPAeT+Wm6km7qgVOpGmtsKQbdCshXcwj/3xr9SU/7dlRt9Ou2sNNY94fQw2H/3hbASF1AbGWitEOowaYwJHR7GqCJZ0d9g7T2iCleC4TfptyyrNZacISvY53nES0mjobOyaZ4h7LsIucPXGlWPHFes44KvL9PBpQAPCeaPAdp/dS/R2yezHcCsPJB+QzS65FyACbbxZrZ0st8bqMXf6qPd1nph6ibYnFNntkhQ8dk9qCeR1U9+CokjSbo1U9UrEprYb3HAM3oGFXTQfm3VqGsBdcoVsudCwwZQfM5g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046);SRVR:MWHPR15MB1197;BCL:0;PCL:0;RULEID:;SRVR:MWHPR15MB1197; X-Forefront-PRVS: 0108A997B2 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6049001)(7916002)(189002)(377454003)(199003)(24454002)(64126003)(5001770100001)(2950100002)(92566002)(93886004)(36756003)(6666003)(5660300001)(83506001)(19580405001)(8676002)(305945005)(3480700004)(117156001)(81166006)(2906002)(7736002)(68736007)(4326007)(19580395003)(31686004)(7416002)(81156014)(47776003)(230700001)(23676002)(4001350100001)(42186005)(65806001)(76176999)(50986999)(105586002)(50466002)(33646002)(65956001)(101416001)(54356999)(106356001)(31696002)(97736004)(65826007)(6116002)(586003)(66066001)(86362001)(7846002)(3846002)(189998001)(77096005);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR15MB1197;H:[192.168.1.153];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjE1TUIxMTk3OzIzOm9FRTc0WStkTllJKzVaZTlxUFg3dWxLSlNB?= =?utf-8?B?TVM0TEw3YWpQa2hlRU9vdG9vK24xY0tsaTBYNnVvR3c3NmFHUGEya0VaRHJH?= =?utf-8?B?SnVPWjJHKzRyY0FWd3pyeThVbEgrZEZVQlQ2TldwU3NvMjVlRTQ2U0s4ak95?= =?utf-8?B?YVhpemh6N0V6cVF6ZlE5MVZxREpsdm5RQ1kwUE1yb3BhR3FBMDViZFYvUzhE?= =?utf-8?B?YjIzcUgwU1NPMURGNENXOTJsUlFkYUF6M25nSWlVTGpXanRxZFptL3ErZ3ZO?= =?utf-8?B?N0Z4YWkvQUlMdEcvdURPNFdlOWhVMWR3MWhZeE5wQ21yT1EvZHVwQ25BTXgz?= =?utf-8?B?bkpkc21YdDh3di9zWUtjN0tMeHVmNU04UEdIWHowMXN2anViVFFWK292QWtq?= =?utf-8?B?YUVpQjdyQWVtNFV6cFg0QjBndGRydjBJcm9Xc2hvSEdUTERaQmwvVFE1S1l6?= =?utf-8?B?RTYvc05idHB2anQ5TDNySHBIS0NmQ0YyYy9TSExad0ZQbTVRdDhSSkZGa3Bn?= =?utf-8?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NDjQ==;24:AjoJR823msow9Z6uNbkXE0X94Ma3aoIGzkRIIKMfeaMZPDnBLPNiVaYpCgUTKAZ9RGdAp+cOOZdNr65GMgwZ8Y+Dkk62laALOuYVVBRXhtI=;7:b+futziaAh4dcZK+rZFQXg5GOTqdWZqibKigbxnUw3862iIJsRqVUNWh0yL0dvkGBwnr1jfmlEY2e52kz1+AP42Q/KcoRUvWvSgsmtRf+PbsQjCSwPk4uIgaNPG1zlbiaeDeaRhkPootB0h6zHWVZO2YOpayjhSdDExFhFlmagVGIQ3Ezd2uLph/5JsHY7LvCUxcpZHT0spcrlDMQ1+EUVVJlDX04fgIx7+VP9HOOFTUwgDFwlAVAd9UeoYrRV3uQTaYFjTDNe7WT6l8hotXbrcLX+1yganwLjP+ajTZj8yAn9A0iUctYIFLyVmVX4jyjTA80y22isYlkbqIZeeTsAyIZ5DlWkF4VpR0OXlwjmo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1197;20:wuf+vRZNuLJd+SH6wddmVJ7ze0EIzDwMbasW8Os/zNH5+C0dIbZWpR+R6pCfcj52MqgrmrZWLIG4jf9g190HN3t1RxptEIouNjzR6i3rYBV66Q5KJ3t6rkawhfQvI30g5ddFLZ0FUAZglcWDH/Q2nzxqVvoMluXoDlevGKCQRhw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2016 16:36:20.3825 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR15MB1197 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-27_11:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 790 Lines: 24 On 10/27/2016 10:34 AM, Linus Torvalds wrote: > On Wed, Oct 26, 2016 at 11:33 PM, Christoph Hellwig wrote: >>> Dave, can you hit the warnings with this? Totally untested... >> >> Can we just kill off the unhelpful blk_map_ctx structure, e.g.: > > Yeah, I found that hard to read too. The difference between > blk_map_ctx and blk_mq_alloc_data is minimal, might as well just use > the latter everywhere. > > But please separate that patch from the patch that fixes the ctx list > corruption. Agree > And Jens - can I have at least the corruption fix asap? Due to KS > travel, I'm going to do rc3 on Saturday, and I'd like to have the fix > in at least a day before that.. Just committed half an hour ago with the acks etc, I'll send it to you shortly. -- Jens Axboe