Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3871186imu; Fri, 30 Nov 2018 07:18:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/V5adA4scMt7y+16njSn8koWH1u/BJLF7FknHzj37D81lVxzUzNPOCMRDYiy3tqtEfyrgAo X-Received: by 2002:a17:902:5a4d:: with SMTP id f13mr6278610plm.49.1543591098196; Fri, 30 Nov 2018 07:18:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543591098; cv=none; d=google.com; s=arc-20160816; b=VV0tktHHBhUjPclhj2pIkaDuC6mDJps/UJCALkQF2j9UQO79dXCAzyVA0hAciwvPI5 jXX8/lTy/AkRGsGlb58bszlCEWw3WGD8Uu62T1Yk0fFrvRYcFwQMLpBzqWw+raymzMzn gEEfNchTmv826XxHX+9DSjry6cBGkCkBNd52VZj0lHWcmwVX1a69E1b2HBHYhA/lK+Eo 14eYtUryHLLJpbb3YWolKECu8XT1WgS1J93EoXMK7G3R3gD/Z5wMPc9jIoMczifIOmuH wnveyDZ7b258/MgkppLIfb1TtuAlioPXyDhgX4kvY/yXpOIA1127pLilMTx8wZW9/i/3 iSHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=CnrImWicQ5cjLvxAEca4Q70u8vQw5IX4HqN7CybOfG8=; b=KiUFam65xJxq76vQe2aPUi+pVjgKyMBY4ai5fqXdgicBIiZqFDIuMv53OUs3OxO0f5 5rHMIsICfWIAN8KmBLk8id7X3aBqdAcDdEf/MgVN2PUR4OfJc8iwlyilPTQByipRvFEV tgE9hJviRzW946JQrjKLBEvlLkjxp3KwCY1Q5pKZqRRR7Z5DzHa2XrBOKsrfjLVo3aGh 1HbbjizM+LcCg0SBKjw/Ws61WQcUuNm6QRFG93Iry2zgxFDkQvZ9POTvTOKfTbVU9LpI i9pMFWpFrjnHQYLaxoyHifPb0NZwAdic3bmMdd6TqRQ+2itNzPDK5UtM6aMiQ84oNmQX XSYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=TnIzjRIM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u30si5116134pgn.170.2018.11.30.07.17.56; Fri, 30 Nov 2018 07:18:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=TnIzjRIM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727141AbeLACZE (ORCPT + 99 others); Fri, 30 Nov 2018 21:25:04 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:33188 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726717AbeLACZD (ORCPT ); Fri, 30 Nov 2018 21:25:03 -0500 Received: by mail-io1-f67.google.com with SMTP id t24so4822539ioi.0 for ; Fri, 30 Nov 2018 07:15:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CnrImWicQ5cjLvxAEca4Q70u8vQw5IX4HqN7CybOfG8=; b=TnIzjRIM6FDTwNJjmBLfRiRC9/Xhf6j4JmPsWMnU+m+3FWNW/CwL3XFMDFDp/nRJGP 2CrH1LqdxpunBRohMi1zzWO2DKQoWIKMevvVehqOI+5K0bWI2EkgIERC0Ubpe+NF5ZEN vyBYIyOIm7uTgTnO9a045e1Nf2fAP3xSJffXOV8WzUy3c2O51MQOkYDHPEQ1biv8glw6 /AUoww5HGM9GDKrht9HUM2jsicgDzU8Aeh8MXQuPD2Y5dUSmA0gcwcjL0lcO82cRkh0d 8hxTGFzZx76pqy+iDLH4ykaHF7AdNqkekOqz93fspoNb4Zm7cleCgImZL3IpdGCg9gXJ 87xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CnrImWicQ5cjLvxAEca4Q70u8vQw5IX4HqN7CybOfG8=; b=VmexTVQAi2Ob42XCwJUObNK44R1Fd8UApCTh//YY4t5Mli4R9HR6g9Vg3HdhpdCpwt ebtlnIs2R5JxfynqaAPuO3qxM/pW2OBXff7N2U7JI/TCtNUdEJcSqk85vV4v4yI3tjlX +x2Wy/xWNhA/MSxwd2yb7L2lusKjk1wl73WIBQGqFwk12KrGflk/AfDQc3sFMGioTLs0 T3W3Cb95F/WoKWYceCast8zKTHzD4pNd4oUeLEy+BTToQyd+eRp0qo6jQYqtrAID2NWu 3JlBX9BQOxnNidjilRV4zkrGF/UY2R25OF3M3nzHXqGxJWAlczRwvK2t7oL+Lj7+15/Y RrxQ== X-Gm-Message-State: AA+aEWZ2H+X/kihhW4wlddiEFqFeNB/clprewy7IOMxh8KbB6SV+FAyK GONf1ZgsTAMmnviwg7zcZ0c7+t7yYyw= X-Received: by 2002:a6b:8bc6:: with SMTP id n189mr4557802iod.234.1543590923489; Fri, 30 Nov 2018 07:15:23 -0800 (PST) Received: from [192.168.1.56] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id u18sm2028975iom.15.2018.11.30.07.15.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Nov 2018 07:15:22 -0800 (PST) Subject: Re: [PATCH v2] fs: fix lost error code in dio_complete To: Christoph Hellwig , Maximilian Heyne Cc: Torsten Mehlan , Uwe Dannowski , Amit Shah , David Woodhouse , stable@vger.kernel.org, Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20181108185835.17803-1-mheyne@amazon.de> <83319cde-9855-d544-8079-15e028f4458f@amazon.de> <20181130104620.GA26765@lst.de> From: Jens Axboe Message-ID: Date: Fri, 30 Nov 2018 08:15:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181130104620.GA26765@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/30/18 3:46 AM, Christoph Hellwig wrote: > Al, Jens, > > can someone pick this up, please? > > On Fri, Nov 30, 2018 at 10:02:22AM +0100, Maximilian Heyne wrote: >> On 11/8/18 7:58 PM, Maximilian Heyne wrote: >>> commit e259221763a40403d5bb232209998e8c45804ab8 ("fs: simplify the >>> generic_write_sync prototype") reworked callers of generic_write_sync(), >>> and ended up dropping the error return for the directio path. Prior to >>> that commit, in dio_complete(), an error would be bubbled up the stack, >>> but after that commit, errors passed on to dio_complete were eaten up. >>> >>> This was reported on the list earlier, and a fix was proposed in >>> https://lore.kernel.org/lkml/20160921141539.GA17898@infradead.org/, but >>> never followed up with. We recently hit this bug in our testing where >>> fencing io errors, which were previously erroring out with EIO, were >>> being returned as success operations after this commit. >> I just wanted to follow up on this. Has anyone picked up this patch? I'll pick it up. -- Jens Axboe