Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1115921pxj; Tue, 18 May 2021 22:07:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzha04U/Mx4Xj5KYhrltDAeysOXYvm3y4FIpmiTp+ZBgCAEat8kMxJWpiXtLzx8soFENuR2 X-Received: by 2002:a05:6402:cb8:: with SMTP id cn24mr11515208edb.325.1621400822516; Tue, 18 May 2021 22:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621400822; cv=none; d=google.com; s=arc-20160816; b=xBFLUjNFHBwSnfaxtj7y6DFO6k5aMCY7ewjZbL5zihJUxKDLGsJVoHLauSnOOCb6fy TUzB+GYeBFAW7BqSDH8qSeozcvKodxD9SwFvkkl5v6G60ydSzVlnKX/7UQ1e7wAOYDGZ zYtumaU8U9QbIb52tOE91wKg7B4ysS7+BiQO4poGBDbr0L4bcC+H7baHrVyhGd8t655X o+P592TGUFSbyqY/JsiCMFNdlP4yu2eAJZTGZ2UYRxq8EffPD2bKfRBI6nHgLyqEm6sf nQ4nbAsXXE363sUG2/r/VXD8oq+S+G2CqAjG23pc52fkb8Twpy/EDodyPgbI0FHIlVfF 83CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=h+GTfhmeBgDj/UpoAJ2mhJrbp6L76sYhn23+JMEI2wY=; b=VALn405n237XuD+FH8LVdydvkQwwCopLzJqMAx8BWbgLvbFIYRbDSlNLvRHXECRBzf c5jamicnMo5OT8bpclKfPmW3U3l1DlJDMqldpMJxvC79mvzPG3eJaKcZeQIhPdBXuOMS wiQt9ncX4oI/LNhWhJxLYUW7l0GaoJCAFijWnhMCtGLD/qt1kaBldKGE7PGhxgBbEjQE 3Hr5L5knQxLskeL8FjmNg/60DUYt5li70M493y/6OzhLIpKpbJkOqEm20HWCci5uy50q gzXXT/AfC5AydBRF1pqWatu5gKNNkIlJUywNe60DEq6N6AkuaEN2mkFRBZXz6BnMrgLO q46w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VTbRrxQV; 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 hs11si20411039ejc.175.2021.05.18.22.06.27; Tue, 18 May 2021 22:07:02 -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=VTbRrxQV; 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 S237482AbhEQUbH (ORCPT + 99 others); Mon, 17 May 2021 16:31:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:30867 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234249AbhEQUbG (ORCPT ); Mon, 17 May 2021 16:31:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621283389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=h+GTfhmeBgDj/UpoAJ2mhJrbp6L76sYhn23+JMEI2wY=; b=VTbRrxQVjsg5DV/HTxP3ttW/JFwAJyk0u1CQEY3TmwU5R8+qOytiysJ1NQurxLuFnT8wxu W9k4uFmY5nOWMV0C3pMskFXrEEJUfI3Rsijbek1P8dZX4iEzsY4xt58ANJu9RcUofJGCKz GcM0dNTTyK0plSJjzdb8lSxg8wt4wPQ= 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-128-iKV66ooIMomviw9u-qPiyw-1; Mon, 17 May 2021 16:29:48 -0400 X-MC-Unique: iKV66ooIMomviw9u-qPiyw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 65689803620; Mon, 17 May 2021 20:29:47 +0000 (UTC) Received: from dwysocha.rdu.csb (ovpn-119-128.rdu2.redhat.com [10.10.119.128]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 042735D6D7; Mon, 17 May 2021 20:29:46 +0000 (UTC) From: Dave Wysochanski To: Bruce Fields , Chuck Lever III Cc: linux-nfs@vger.kernel.org Subject: [PATCH v2 0/1] Add callback address and state to nfsd4 client info Date: Mon, 17 May 2021 16:29:44 -0400 Message-Id: <1621283385-24390-1-git-send-email-dwysocha@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org For troubleshooting, it is useful to show the callback address and state inside the nfsd4 client info. Note the callback address and state is also available via trace events, so use a common function and output. Changes since v1: - fix indents, run checkpatch (Chuck L) - create cb_state2str() inside fs/nfsd/trace.c (Bruce F) - rebase on Chuck v3 nfsd patches and test Dave Wysochanski (1): nfsd4: Expose the callback address and state of each NFS4 client fs/nfsd/nfs4state.c | 2 ++ fs/nfsd/trace.c | 15 +++++++++++++++ fs/nfsd/trace.h | 9 ++------- 3 files changed, 19 insertions(+), 7 deletions(-) -- 1.8.3.1