From patchwork Mon Oct 31 12:07:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: shaozhengchao X-Patchwork-Id: 13025681 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7A4CFA3744 for ; Mon, 31 Oct 2022 11:59:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230397AbiJaL7t (ORCPT ); Mon, 31 Oct 2022 07:59:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbiJaL7s (ORCPT ); Mon, 31 Oct 2022 07:59:48 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E65313892; Mon, 31 Oct 2022 04:59:46 -0700 (PDT) Received: from dggpeml500026.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4N1BQr1q4tzmVc2; Mon, 31 Oct 2022 19:54:44 +0800 (CST) Received: from huawei.com (10.175.101.6) by dggpeml500026.china.huawei.com (7.185.36.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 31 Oct 2022 19:59:43 +0800 From: Zhengchao Shao To: , , , , , , , , , , , , CC: , , , , Subject: [PATCH net,v2 0/2] fix WARNING when removing file in ipvs Date: Mon, 31 Oct 2022 20:07:03 +0800 Message-ID: <20221031120705.230059-1-shaozhengchao@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500026.china.huawei.com (7.185.36.106) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org When using strace for fault injection, some warnings are trigged when files are removed. This is because the file fails to be created during the initialization, but the initialization continues normally. Therefore, a WARNING is reported when the file is removed during the exit. Acked-by: Julian Anastasov --- v2: add macro isolation --- Zhengchao Shao (2): ipvs: fix WARNING in __ip_vs_cleanup_batch() ipvs: fix WARNING in ip_vs_app_net_cleanup() net/netfilter/ipvs/ip_vs_app.c | 10 ++++++++-- net/netfilter/ipvs/ip_vs_conn.c | 26 +++++++++++++++++++++----- 2 files changed, 29 insertions(+), 7 deletions(-)