Message ID | 20230928161752.142268-1-shikemeng@huaweicloud.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3199244vqu; Thu, 28 Sep 2023 03:10:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLy/N8r2mkkNgKA2tkEduhR5NFq8jrI/FB35HiTI13u9Qge9/19hU/cI5VXfh7XL83IXxX X-Received: by 2002:a05:6a20:7da1:b0:15e:927:aac8 with SMTP id v33-20020a056a207da100b0015e0927aac8mr741188pzj.10.1695895810984; Thu, 28 Sep 2023 03:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695895810; cv=none; d=google.com; s=arc-20160816; b=HHLrj0l9UsxCL6185L5TNoJxYOvyJ1BZ6X/aVxFQXKqe0R6NDVMfGMvfTa6ixrQeUx 3GmfAfeF6vR+Oe55qy48qDp8q8SlmTqTbpfsB6kxNFXv/TzesZHxyH6SD5D0QObeIqvL MYUAcS4+RDi1P0KDh8K/IJfYyJMrN7mkOahOJ32MD2Rpk8jKaBox4raT/HMYg+u1QZAy 8AHbHB3u66wq1XeG031VoQ7NpKK4Y1TWUoFr8p1FqthfEgyDSeUrziBuFDsoFngDNZQJ Rlhs+NGUQEsgZZHOF21wkQncjBmema1fDD37vGRTX5XjwLjz2w3DVl5XkpLmG9yBx1Gz iBMA== 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 :message-id:date:subject:cc:to:from; bh=48S1SU/BCe6SHMvGQktbnX7UnEeoTl5BPvNaJGG2mvc=; fh=sVO6dZaz2MjOMYYQUXK0Jk+arht08gyUXlIvEKWSH7U=; b=Bbjz+3/T/ogavhzOvJ844dCINa9JRiflzRl4L3M/qZyn+kW2elqf4YAsckZbLe8odR zXJcqFRYdAnw5BRn9BhcvTlHojtmtfbLHhiN/9890IHBjw6kWN+iu3lItwRFXmgPYAHG ndhlCsnh13XdNHoXayijKTKN+jRH6oKhuKAfZk/Xl+v0lnnaREeHlZvLpFLm48SBCIBU z3ttIKEsajKg8lzzl7h4cvERHKEPg3XOM2e5ISqSogo3StTDhtVieAPu0rO/rY/hSxOt uHNzsAIUVQxHglhi0fJbK8W4fElX5+jWDJJ1U6PlsunvUx4wz79pZHz6IBMUpzAkPN3Q rMeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id jx11-20020a170903138b00b001bbdb34628bsi16491036plb.289.2023.09.28.03.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 03:10:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 446AB82DE873; Thu, 28 Sep 2023 01:18:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231265AbjI1ISl (ORCPT <rfc822;ruipengqi7@gmail.com> + 20 others); Thu, 28 Sep 2023 04:18:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjI1ISh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 28 Sep 2023 04:18:37 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C056298; Thu, 28 Sep 2023 01:18:35 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.169]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4Rx5w75hL6z4f3kJw; Thu, 28 Sep 2023 16:18:31 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP3 (Coremail) with SMTP id _Ch0CgAngVDXNhVlhwUABg--.50964S2; Thu, 28 Sep 2023 16:18:32 +0800 (CST) From: Kemeng Shi <shikemeng@huaweicloud.com> To: viro@zeniv.linux.org.uk, brauner@kernel.org, dhowells@redhat.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Two cleanups to pipe Date: Fri, 29 Sep 2023 00:17:50 +0800 Message-Id: <20230928161752.142268-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _Ch0CgAngVDXNhVlhwUABg--.50964S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYn7kC6x804xWl14x267AKxVWUJVW8JwAF c2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2jI8I6cxK62 vIxIIY0VWUZVW8XwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xII jxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjc xK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IY c4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI 0_JrI_JrylYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY 0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F4 0E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1l IxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVW8JVW5JwCI42IY6xIIjxv20xvEc7CjxV AFwI0_Cr0_Gr1UMIIF0xvE42xK8VAvwI8IcIk0rVWrJr0_WFyUJwCI42IY6I8E87Iv67AK xVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvj xUI-eoUUUUU X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 28 Sep 2023 01:18:56 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778275645646036607 X-GMAIL-MSGID: 1778275645646036607 |
Series | Two cleanups to pipe | |
Message
Kemeng Shi
Sept. 28, 2023, 4:17 p.m. UTC
This series tries to remove some unnecessary check in pipe. More details can be found in respective patches. Thanks! Kemeng Shi (2): pipe: remove pipe_full check with wrong head in pipe_write pipe: avoid repeat check of pipe->readers under pipe_lock fs/pipe.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-)