Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp126729lfu; Mon, 4 Apr 2022 22:04:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygs+Fx7Rn8JGjcq8gbB8aenkCummJydkJPVTbW7R+o0DdL0GFqy9NVN1ICOnRd+VLuz9qd X-Received: by 2002:a05:6402:c1c:b0:41c:d04f:31b2 with SMTP id co28-20020a0564020c1c00b0041cd04f31b2mr1643550edb.89.1649135070313; Mon, 04 Apr 2022 22:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649135070; cv=none; d=google.com; s=arc-20160816; b=klfX2KYKQiBjxheedYqJ0mcBcjcYuMaWWjoxNCaouDHvKqqW9FQg++G6lgeW2EqRQQ S4h8spWNlZI1+0c5u5KSofeMk81c2gauRmdr1e+pzDmb6I+3PbLfXJkd03M3C+g18nWl 3EFnzcm1B5WfOC5vMezXMLRgHMBNVJJaF7+Aad5AcMf+mXcnLgr8JFuD8dOSeO8uP0H0 GylT/qSQT6UOU1BV4qSvK96vrzghAnWY0ndvZhqeguv0NA+FYNPeJoDt8sli0hen1vJ5 LQuI9QdJNRYoI72t4IxLcT4vx1nWdXbbmc9+9CWSBx2NunnpXaM2i2WB09+0EbEd5Hkw ut2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=gfIatCEuRT9nJiPCaMct2VuLLtbJFsIG/prQVRn4mg4=; b=dFeaskFcvAQA2j6EIwBKDmpeyx8gNhkUKOrh2bWhVY1Uib5XbpHCHGP1JeWpNMhIJg W4Y8iTRKrQuRDJUkryzJ0TygcPX3+tbMbsoWUjJDju9KVc2cZhmSVDAsb9A2Lr6Xf4Ww n3vuLBFiHVovJvPtEiCLd31BzvHj/9qY837GT42D0mlxe9utHCq2m4fGOjWAJOLaUIef EPgPA3xdnWflsZg+ChVFYzhIntf/hzcIIhOqEEiFVt7Cb5G+3I66Y2vKt8ZjQv3erDkc jOHZvMYV2XrHj/DB/UmRGujNQamysCvmHHH8zY/NBfRudw3QEwgAQeoUHiYerp96+LDg JAPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=NoKDWVE5; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=pcpVnecB; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a50d944000000b00418d79a1ce8si8140105edj.103.2022.04.04.22.04.00; Mon, 04 Apr 2022 22:04:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=NoKDWVE5; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=pcpVnecB; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229493AbiDEFDT (ORCPT + 99 others); Tue, 5 Apr 2022 01:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiDEFCs (ORCPT ); Tue, 5 Apr 2022 01:02:48 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6CD111A22 for ; Mon, 4 Apr 2022 22:00:11 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 63DD4210FC; Tue, 5 Apr 2022 05:00:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1649134810; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gfIatCEuRT9nJiPCaMct2VuLLtbJFsIG/prQVRn4mg4=; b=NoKDWVE567DDY/YhZuw9nCbcp+eQtcMckeBPUBg35cl1IQuxiv+IlKKMEY/2YAEJa5yARF b+t5XAlTUn0myi9fYugtNmmt941BzYtupJ7cv9qe+M1jKsesWt5z9Kc6IX416C9Iyxr6FH 7nXsKceXA6wYg9Nv1XT/1SwL8nFRgi8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1649134810; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gfIatCEuRT9nJiPCaMct2VuLLtbJFsIG/prQVRn4mg4=; b=pcpVnecBQjedAaeizVAg5KTD975J0/q3XKIgHER1jZZfxeyc++sUmLvmZsNDAQWsZdnZbn rytK6SM6aZZ1VcCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5324713B95; Tue, 5 Apr 2022 05:00:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8PywBNnMS2IAOgAAMHmgww (envelope-from ); Tue, 05 Apr 2022 05:00:09 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Trond Myklebust" Cc: "chuck.lever@oracle.com" , "linux-nfs@vger.kernel.org" Subject: Re: Question about RDMA server... In-reply-to: <50ea0e392fd8b0b1bec987e5c5f923c7baef439f.camel@hammerspace.com> References: <82662b7190f26fb304eb0ab1bb04279072439d4e.camel@hammerspace.com>, <1114899D-BBF5-4CB1-9126-E4E652ACAAB6@oracle.com>, <5DCBD9EB-7721-48FC-9EBD-58B7DF05A704@oracle.com>, <8af942181abb39cd7ce8fe91be9c4c2f8c9f2c56.camel@hammerspace.com>, <2E4807E4-5086-4F15-B790-8D952B394FE5@oracle.com>, <974fa169124661c2ce5ed549d499837435cc7b4c.camel@hammerspace.com>, , , <930A468B-E674-4F5D-8BC0-DB9F45611A9D@oracle.com>, <50ea0e392fd8b0b1bec987e5c5f923c7baef439f.camel@hammerspace.com> Date: Tue, 05 Apr 2022 15:00:06 +1000 Message-id: <164913480601.10985.1519370018759325971@noble.neil.brown.name> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, 05 Apr 2022, Trond Myklebust wrote: > On Mon, 2022-04-04 at 15:34 +0000, Chuck Lever III wrote: > >=20 .... > >=20 > > I gotta ask: Why does cache_defer_req() check if thread_wait is zero? > > Is there some code in the kernel now that sets it to zero? I see only > > these two values: > >=20 > > =C2=A0784=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (!test_bit(S= P_CONGESTED, &pool->sp_flags)) > > =C2=A0785=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rqstp->rq_chandle.thread_wait =3D 5*HZ; > > =C2=A0786=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 else > > =C2=A0787=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rqstp->rq_chandle.thread_wait =3D 1*HZ; >=20 >=20 > That test goes all the way back to commit f16b6e8d838b ("sunrpc/cache: > allow threads to block while waiting for cache update."), so probably > more of a question for Neil. 12 years ago.... the commit message suggests that the "underlying transport" might not approve of sleeping, but I cannot think what that might mean. Probably it seemed to mean something earlier in the design process but I discarded the idea without discarding the code. > I don't see any immediate problems with removing it: even if someone > does set a value of 0, the wait code itself should cope. >=20 Agreed. NeilBrown