Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5037222rdb; Tue, 12 Dec 2023 17:49:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9oaF5IhUuoKtVF4grj8NQITkpuh4mgpNFH1moqx9Z14FIwU8MCxTIYv/BYeRD9m9RxX8o X-Received: by 2002:a17:903:48b:b0:1d0:8fff:cd94 with SMTP id jj11-20020a170903048b00b001d08fffcd94mr6470346plb.58.1702432148317; Tue, 12 Dec 2023 17:49:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702432148; cv=none; d=google.com; s=arc-20160816; b=ukbxWDWnO6HE7rbRNyk0pmZWwyg5wb/zU8oVfl5HM4SRbRzYHL7D3Lel1VKnpHG08K FTXl/fZHk9wRipG77KFxWOH+AdqpzCH+ZI5R2DFoZ9Qs+um8FRKCSf9DXYWkZAHAZ3Hw TkcSfcaWUueUtlH/j5wyAm3b+31t5S8IabPF53X0lKQyf7BG/2MNas4UOzjXTCL9HKdA N+E0XESL4C44LYJZp4S7Vkgj3q0vguoS0FGfBUdAOGTvdCTV8Bjiy5lZNazPZltljeen wT26gJyaaqv6DfuUH6RBqWUPROn77Kpc6uuuFf5iEIp8vLszRvQZ6V5HM/5DGqtwDmaR VEfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date; bh=eu3/A5UUJebLOEymYNAJtD6Q50+OjNlpAaSu95HRQJU=; fh=mJjK3oN4x/bCfbwbvLbBno32GJNV9PcECIw7PF30jB4=; b=rD0VEQ/sFXXfSfS4C6V2zQVWP72ElGt/ZmiXQnrhsh/wLPGbnlx4uF7A47LmjzF7Fj JAPt/cvIWMzDuV8u2FYJIwlMUKqVGRj3rXT6S6COGep0f+xutbu3I3B3ivMcRul+PEr8 Cc8O8l45C+uIWudOvDcY4GburaX7RCuBHH2I4GhJMnyKtRdKrvF+PBvf1St/AOFsoa7T yh3l7GR3UJ+vXathgJ904Q/Gfl6t0hOHvK0HSVJvJf+Pc8hvej3jECQYiZdgwT/enZux pI/WszNksqj43xDqZx1VwZoRYYTvlVhhPNBwF7lgu+4ky5Pfg7ShJxOo+6CmToIq5/fR Ay0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id p19-20020a170902b09300b001c36018fdaasi8619477plr.219.2023.12.12.17.49.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:49:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id EC62580A9DEA; Tue, 12 Dec 2023 17:49:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378216AbjLMBst (ORCPT + 99 others); Tue, 12 Dec 2023 20:48:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378199AbjLMBss (ORCPT ); Tue, 12 Dec 2023 20:48:48 -0500 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B984CAD; Tue, 12 Dec 2023 17:48:53 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=tonylu@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0VyO3miM_1702432130; Received: from localhost(mailfrom:tonylu@linux.alibaba.com fp:SMTPD_---0VyO3miM_1702432130) by smtp.aliyun-inc.com; Wed, 13 Dec 2023 09:48:51 +0800 Date: Wed, 13 Dec 2023 09:48:47 +0800 From: Tony Lu To: Ahelenia =?us-ascii?Q?Ziemia'nska?= Cc: Karsten Graul , Wenjia Zhang , Jan Karcher , "D. Wythe" , Wen Gu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND 06/11] net/smc: smc_splice_read: always request MSG_DONTWAIT Message-ID: Reply-To: Tony Lu References: <145da5ab094bcc7d3331385e8813074922c2a13c6.1697486714.git.nabijaczleweli@nabijaczleweli.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <145da5ab094bcc7d3331385e8813074922c2a13c6.1697486714.git.nabijaczleweli@nabijaczleweli.xyz> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Dec 2023 17:49:06 -0800 (PST) Please add correct tag, for this patch, IIUC, it should be a fix, and you need add [PATCH net]. On Tue, Dec 12, 2023 at 11:12:47AM +0100, Ahelenia Ziemia'nska wrote: > Otherwise we risk sleeping with the pipe locked for indeterminate > lengths of time. > > Link: https://lore.kernel.org/linux-fsdevel/qk6hjuam54khlaikf2ssom6custxf5is2ekkaequf4hvode3ls@zgf7j5j4ubvw/t/#u Fixes line is needed. > Signed-off-by: Ahelenia Ziemia'nska > --- > net/smc/af_smc.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c > index bacdd971615e..89473305f629 100644 > --- a/net/smc/af_smc.c > +++ b/net/smc/af_smc.c > @@ -3243,12 +3243,8 @@ static ssize_t smc_splice_read(struct socket *sock, loff_t *ppos, > rc = -ESPIPE; > goto out; > } > - if (flags & SPLICE_F_NONBLOCK) > - flags = MSG_DONTWAIT; > - else > - flags = 0; > SMC_STAT_INC(smc, splice_cnt); > - rc = smc_rx_recvmsg(smc, NULL, pipe, len, flags); > + rc = smc_rx_recvmsg(smc, NULL, pipe, len, MSG_DONTWAIT); > } > out: > release_sock(sk); > -- > 2.39.2