Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4445290pxb; Mon, 21 Feb 2022 21:51:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyW3zHIkTfnLvRA0aVHeOyVkCCHdTQ8TNNlq11ZhdSqqasgwbcisBrFnCxzPBq1Ak48P3Iv X-Received: by 2002:a63:6cb:0:b0:36c:e2d:8857 with SMTP id 194-20020a6306cb000000b0036c0e2d8857mr18396948pgg.214.1645509090773; Mon, 21 Feb 2022 21:51:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645509090; cv=none; d=google.com; s=arc-20160816; b=dyYmCwFq5qZ4qrcOw2RxwJgCXu+qYOa4KG9d3ENzu23RJyxZKbWRql9w8C8alGr7Nx hpK2fFMKyfxfsGk5n0yH0ohEDf3f6DAwbPQ4nz6E+qHLH05iU3pjiU3XGEFPMheGaGuQ BMby7fbpnLZbBdoaZ0xd1J8qFd8asDQ4iJK7kzqjZHJC/uhuCFQBJY/mWDew6bHoYzgE CMzpO/76h23pynCQ55/SYRdrIUKoC0q74Be7szTTtwBGd7Vkj0LEgxma26fG2wKogzkT 783Bc0ACYmyoSkigNhcmuNq2bHYxpRuwXetF/X5aYCu/yi/eiL6qelLR/40YrgNbQ7/P mHaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SVtgEl2NAmL//Tw1UP18c9KPKc7u0FsGeRDSKKgVLhA=; b=imuawscx6c5KAOus4QgaWnKJB9zlPkBu+LgYi/ktHiecMmYCq3E6P/+RmMpg0Owphp r9cHqgkHQHOIrxwvq0Df1tMdI1bdeRYSmD4FzPROvfoeCccjwA6dHCOzVY2ZGB+H4aN9 0T4wNQMDsQSASx3kDjXKT99We6Af2ZYbD+Yiw8yADlYvueu1zThtXgfbeN71e/R/THWE GqBHAbk7BGrkNEyH1jjYMyJysUDrUKKfWc4A3kJ+xw/a8vU/rXA0U2whD3TXT/rON6bg 68SvAshVirmj7TlA4lf0M43WRSqDPIcBFIiZMJXY5bO9ELBXae/nMDDJZ0a25svXLXMZ ISvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P91W+eAk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id mz7-20020a17090b378700b001bafa897aa4si1175879pjb.85.2022.02.21.21.51.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:51:30 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P91W+eAk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 80E3AE3C52; Mon, 21 Feb 2022 21:14:57 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346666AbiBUI6Q (ORCPT + 99 others); Mon, 21 Feb 2022 03:58:16 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345763AbiBUIzp (ORCPT ); Mon, 21 Feb 2022 03:55:45 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B2851DA58; Mon, 21 Feb 2022 00:53:50 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7A2B5B80EB3; Mon, 21 Feb 2022 08:53:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EEA2C340E9; Mon, 21 Feb 2022 08:53:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645433627; bh=F7oy1PKhRI9HjHdGhkNh1hbZnO5CUUdpmCLUcr1xt90=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P91W+eAkcCHUIdav1RuOG9l94yYkpG4xrIxfB57T7eQPcsK2+QGRyELIQtRfCjXcU eajLRIfEqpBfy0JgiF7LYg0tGMVvCdUeerUxHsZdm84E8DCg2b88ujhsui2wWK/lmp S+N7uzkDYANkZlE4OkPtF8kZGGTA/k0wooeRE1pk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?D=C4=81vis=20Mos=C4=81ns?= , David Sterba Subject: [PATCH 4.14 06/45] btrfs: send: in case of IO error log it Date: Mon, 21 Feb 2022 09:48:57 +0100 Message-Id: <20220221084910.669782398@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084910.454824160@linuxfoundation.org> References: <20220221084910.454824160@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dāvis Mosāns commit 2e7be9db125a0bf940c5d65eb5c40d8700f738b5 upstream. Currently if we get IO error while doing send then we abort without logging information about which file caused issue. So log it to help with debugging. CC: stable@vger.kernel.org # 4.9+ Signed-off-by: Dāvis Mosāns Reviewed-by: David Sterba Signed-off-by: David Sterba Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/send.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -4944,6 +4944,10 @@ static ssize_t fill_read_buf(struct send lock_page(page); if (!PageUptodate(page)) { unlock_page(page); + btrfs_err(fs_info, + "send: IO error at offset %llu for inode %llu root %llu", + page_offset(page), sctx->cur_ino, + sctx->send_root->root_key.objectid); put_page(page); ret = -EIO; break;