Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp802767pxj; Thu, 27 May 2021 12:00:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxfln6/SmxSBiG6M9fY5bTbkAvrDIw6VFNrrGmK2RXaDXtq2UjYCel/EXUwV4Ui1StbMiV X-Received: by 2002:a05:6402:15:: with SMTP id d21mr5935432edu.66.1622142011274; Thu, 27 May 2021 12:00:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622142011; cv=none; d=google.com; s=arc-20160816; b=SY8oBXBWwiqsOBCu+81fjQzIjBGGXKD6EOw7U+oiqjV0AydOypYI3T/I7/m1VR/HD/ 29qGaaqqu4rqTWsANxDGkW+8vMVRfqyoLk7BmBdZLMgkv1eXmliaXbDBA3gFNBDkKVV2 yZnmwUEMoYPpd99HAsa7RrgJlObgTGtkTHhQqBh1lXN3134YVRfVZn8HCbSOs3aoG60L Upfv/NMsQHhz+TYciAVr8YgegbL15rRjZufk5BUB70xTVbf7TlRESAcBZa0fz6qSG7x/ V2GPZ0ExTtOpiV17kkinPGESNKXPXUA5DWI1M/mWk5EtPTOFGMk9SBVpLaVCs0Jp5xxs 8Upg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rkkakjY8yMewgt4Z7DDrKG8AVtcy8vdhzphUMfjqmfM=; b=Ec/IROyKMaTiSpYf+X0WK2hJYtBiUz9zCI9Yj1uSG4eDrxJaH11IcncWA3ZHtr981j /G8wxaq8iS4scWH75rMDMb3Y+/0PHWpR90VWnU047BbCt/9x/opM2yrL5cAeaDKggd4a En/5Xo38Qgx0GDYVjKN00BP+8/wIxP9yGdHCIW+V1n0Mgm8+k+xchWRtXMi38oLTouIc NXAWIGVNGyJGQSWcbS55iFh4mX4h9XBKkvAJ0IK369TTem+9XqgiBx5Z9Ozoo323KYW/ AAyy8o+CNARNhsQgaTZyj7rLf+ywBeyDcNgcuceghrhIxL1F/02l6FoUbTvW+6mwqL26 gsEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=MdwPBbsQ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si2925722edm.30.2021.05.27.11.59.46; Thu, 27 May 2021 12:00:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=MdwPBbsQ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234233AbhE0Qsu (ORCPT + 99 others); Thu, 27 May 2021 12:48:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234169AbhE0Qst (ORCPT ); Thu, 27 May 2021 12:48:49 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 680AFC061574 for ; Thu, 27 May 2021 09:47:15 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id b17so1680873ede.0 for ; Thu, 27 May 2021 09:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rkkakjY8yMewgt4Z7DDrKG8AVtcy8vdhzphUMfjqmfM=; b=MdwPBbsQaj6ZAcAC1k1b32YNLrKljMgYBK2eTyLD6ywifFG0S6fA+zERoCB0IrCPgK 571L/Oyi1c/94olTeZyZIfbOoR/e64/v1c9pIbiGmw8itLok+O1UM6Yq+OeHJckQePIl FSso1LaRJGs3OUEOhBiPoiqnaU7qHtY1WhR3geOqc/7jmyF/fKVP29BBVQUvIdDKVTQi JpzW+W8v7F46nYxI+DOdDzenRxZd0HIlkYs/uk/p13imcFWUz2EsjbEs/9OMhniGG73h nPM7KcMDc6PSX6Cabn1rsdymxWdvn5TvxDLHJXGBdGd0eAPlbv3NA6GGvTK7eZ5TcElA lnPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rkkakjY8yMewgt4Z7DDrKG8AVtcy8vdhzphUMfjqmfM=; b=bblEqCS6dvQxqlp89jTxgUGWHugClm27ptxD6ano96QZPKbxbtT3yCre3IaGunOz2h vI8htH9W9NdfmKgie/FsPDBfWt7tAdQ2B9HYL9xWD6D/NKl2ZBAY/pY0cCa4FFnd98oc ayyVzW49rznotaJEeF4yBOAA6YXFD7DPd4EOSHAYWQPslYEyXT77AnnDgRQjFlBOhEcX to7Qy/B6m5BfpbqEhekL0uTbpr+9FSPuxynzS3k0e+ehf+YrWSX+fyVxPpr6HyhdjeGH YVVN4wg5lEqx7nKDrJCk+4lcnNDDowcU1+8OlvNOWQ3E2q0lVdNye4uphoTNtTrPbcEm Urew== X-Gm-Message-State: AOAM533YRLp+FfxfNUwcBjmKGST+aIxvqOz7z/yv9pphu1+BLg9SLGJQ j1p8ZuLwwDOIqovN05NU5oEuNcMX3kes+nzLTcQ= X-Received: by 2002:aa7:cd19:: with SMTP id b25mr2696264edw.84.1622134033868; Thu, 27 May 2021 09:47:13 -0700 (PDT) MIME-Version: 1.0 References: <20210525180033.200404-1-smayhew@redhat.com> <20210525180033.200404-3-smayhew@redhat.com> <490b45eb-0142-24de-e05f-79751891ddf9@RedHat.com> In-Reply-To: From: Olga Kornievskaia Date: Thu, 27 May 2021 12:47:02 -0400 Message-ID: Subject: Re: [nfs-utils RFC PATCH 2/2] gssd: add timeout for upcall threads To: Steve Dickson Cc: Scott Mayhew , linux-nfs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, May 27, 2021 at 8:52 AM Steve Dickson wrote: > > > > On 5/27/21 7:40 AM, Scott Mayhew wrote: > > On Wed, 26 May 2021, Steve Dickson wrote: > >> If people are going to used the -C flag they are saying they want > >> to ignore hung threads so I'm thinking with printerr(0) we would > >> be filling up their logs about messages they don't care about. > >> So I'm thinking we should change this to a printerr(1) > > > > Note that message could pop multiple times per thread even without the > > -C flag because cancellation isn't immediate (a thread needs to hit a > > cancellation point, which it won't actually do that until it comes back > > from wherever it's hanging). My thinking was leaving it with > > printerr(0) would make it blatantly obvious when something was wrong and > > needed to be investigated. I have no issue with changing it to > > printerr(1) though. > It would... but I've craft the debugging for a single -v > is errors only... Maybe I should mention that in the > man page... And looking at what you mention in the > man page for -C, it does say it will cause an error > to be logged... So I guess it makes sense to leave > it as is. > > > > > Alternatively we could add another flag to struct upcall_thread_info to > > ensure that message only gets logged once per thread. > > > I think it is good as is... > > >> > >> Overall I think the code is very well written with > >> one exception... The lack of comments. I think it > >> would be very useful to let the reader know what > >> you are doing and why.... But by no means is > >> that a show stopper. Nice work! > > > > I can go back and add some comments. > Well there aren't that many comments to > begin with.... So you are just following > the format... ;-) > > Don't worry about it... How I will finish my testing > today... and do the commit with what we got.. Hi Steve, Can you please provide a bit more time for review to happen? > Again... Nice work!! Yes, nice work. But, I object to the current code that sets canceling threads as default. This way the code hides the problems that occur instead of forcing people to fix them. > > steved. >