Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp801897pxj; Thu, 27 May 2021 11:58:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxva14UUFfayNfczCCsg0+2IfBfgFPqPWKVcHLFQxk0tKGtnAqM4uc/lwRgzsxO7xrU7mDZ X-Received: by 2002:a17:907:98c3:: with SMTP id kd3mr5358381ejc.154.1622141936687; Thu, 27 May 2021 11:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622141936; cv=none; d=google.com; s=arc-20160816; b=n49Do1y4cxcgMc6cyUBznuhMwewnemxV0iHgs2aomnSqDIK5H1Lk6G21hVCPN+Csc9 JMMvUl7yFpaawdbzopTjq6Wmj2oJO05I6mdMETCd0cSVhxrYQOTjxZyQnhA15qWuhi6u bx1Vy9VJ0nbPT1QlqJtqXOWbTRVJ7mq79JHD0l81mTBedF1cwhdRQBjPIWcEh2TprVUD vZmxPIYVP19Bd6Izvu3pq5qY/E/Y3oA2eErFOI3m98N132f9AzykxKlw96JCeXVcpPlC pnx3Z8ahIhdyz3zbb6UihCXvYFCo+fbW9gwNvSW8y0IB9NvQSDiRlEEztS6VoqDA1WT4 fQbA== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=VzqDS9vthqMOOgivvdyqpJvIHIiwMK8Y2JKSfmxIgtI=; b=XbUa7NmH8yChWxNxgj/ZZJvBa7RNfxuRz8ilgjfozBFOS1B+UoRbsi/8Fkt4j4REp3 1VfCvlz29D3XJTIh+qpxyFG+VW6TqSxpPrhZuegO34PrGilfqy1GX9BTmshwn/VmxUX6 6x2OEgp5g2eIwhBjA0DDLWFt4Iu6OaOl15IfulimPyDP9f1pEhbd0FxDq4IdQgsEe0Vf dahTVGc6RC1F4LpMmx+kU15xL+94zN+V0GO6NMm1qiem1AQHVIuTKY3DvFeOZmIURIPS fCXQxt3KIx5N9xTqX1rbO6JnBL43o4GfaVUv06FxM5wvKiR+e/Jn8jjsAnPPwRR2xnvp ldLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Jcas8GRs; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si3914674eje.4.2021.05.27.11.58.23; Thu, 27 May 2021 11:58:56 -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=@redhat.com header.s=mimecast20190719 header.b=Jcas8GRs; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233416AbhE0QvW (ORCPT + 99 others); Thu, 27 May 2021 12:51:22 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:23404 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbhE0QvW (ORCPT ); Thu, 27 May 2021 12:51:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622134188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VzqDS9vthqMOOgivvdyqpJvIHIiwMK8Y2JKSfmxIgtI=; b=Jcas8GRsRh+/UTBsJ8ypqgDZT3K3fszgJx/RjurnEPL9XgbzrVJu7reI+jigVYfI+OJAaP MzMm1xahYz3kDdvILN6V+8pp2Lx6gp8/MZPB7idQkxW9nDNR7PpIayLXwbmMpgq0BXpgdW Ir3zVU+BUWosVPIjWJOGnwgEfM9DPAw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-262-ZbuvtrzlO524mvJ1hMy8sQ-1; Thu, 27 May 2021 12:49:47 -0400 X-MC-Unique: ZbuvtrzlO524mvJ1hMy8sQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4DCEC107ACCD for ; Thu, 27 May 2021 16:49:46 +0000 (UTC) Received: from aion.usersys.redhat.com (ovpn-114-18.rdu2.redhat.com [10.10.114.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2A08050F70; Thu, 27 May 2021 16:49:46 +0000 (UTC) Received: by aion.usersys.redhat.com (Postfix, from userid 1000) id 4AA391A003D; Thu, 27 May 2021 12:49:45 -0400 (EDT) Date: Thu, 27 May 2021 12:49:45 -0400 From: Scott Mayhew To: Steve Dickson Cc: linux-nfs@vger.kernel.org Subject: Re: [nfs-utils RFC PATCH 2/2] gssd: add timeout for upcall threads Message-ID: References: <20210525180033.200404-1-smayhew@redhat.com> <20210525180033.200404-3-smayhew@redhat.com> <490b45eb-0142-24de-e05f-79751891ddf9@RedHat.com> <64b6f93a-e81c-fd8a-8db5-44e69004294d@RedHat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64b6f93a-e81c-fd8a-8db5-44e69004294d@RedHat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, 27 May 2021, Steve Dickson wrote: > Hey! > > Off-list... > > On 5/26/21 1:08 PM, Steve Dickson wrote: > >> + free(tinfo); > >> + return ret; > >> + } > >> + printerr(1, "created thread id 0x%lx\n", th); > > This will be removed... > It turns out this tid is useful since the > tid is used in the do_downcall() db statement. I already got rid of it! > > In general I've try to always used the function name > in the db statement so it is know where it is. > So maybe something like this: > > pthread_t tid = pthread_self(); > > printerr(2, "start_upcall_thread(0x%lx): created thread id 0x%lx\n", tid, th); > > steved. > > P.S. After your final version, I'm going to follow up with a debug clean up > patch... So I can take care of it there... if you like. >