Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5036941pxb; Mon, 15 Feb 2021 07:57:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3YfZQrqMHdxxDiG1cq0/rEomI+gOorEcG+nRi8qTXbT382cVpae+7unnCqqHWVe8TYgzt X-Received: by 2002:a17:906:c798:: with SMTP id cw24mr13158416ejb.504.1613404665878; Mon, 15 Feb 2021 07:57:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613404665; cv=none; d=google.com; s=arc-20160816; b=nMxDE/jlQu+0hqKPKzPFqecQ/hxqPKfSP1EovCKbpCS1mbrfx5McARLGJcXSizySfg xFcypZAQcLJ4xCsZSy9jB0o3tmG9S6YakKZgr/aIQIyssZ8LgKdtpPMEwMtgpEhUeBhL aliKU5CO0EgvTTxjtnr/wrZGFb2ptDsFllNrggMvKwTIwUoVh5OKp0RE/5xB6/L3BB/R eAG/0XBgP19to6ElFnjHh5CkqXgwLpldtJgCTfh1rT0AjhuxPiJzDMf6BI7BmsCvHvAQ qkO+he39oXL4xhZKeQqc4zA3F5WluZ0p3mYia4hbD3z0Ei6LoeoKycJfpeJrGbicqWbp kTnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:organization:dkim-signature; bh=TH+EmW0Z3G3B5IjmekyvNoLfQJD+b1qi0smOJeyhcrg=; b=ZgxjuXjGPFk9xKYfDvcBR92ec2KRgD0tI8Zc18xrtvFjZETp36gLBdPHL9nl2hrsIs K9pub0N96OX7W9aQNUwb2FfsatA79n/0+++qQs3zRjexa5o5RbUls2iV5gx0aC0fdnAo KCITxQu6yGlklnvRVKOfv3MCu3tfzPK8iTS4bRp5fyUcnWBIrIK+xouBjUI/lhYAi95f qxt1TnXgrV/kWrLML9Ge5u4yKXtnrlLZ4cm7rP6xt+qlb1dPH1VqwqHZu1+y02Kxpe+a MN/Zkj9nI05+12gqiiC4Y5zoV6ifczzi1tu18McdQmsBqmer9BK8XOLtReRrLESyXdAv j5aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DKxfGSIq; 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 y13si13135074eju.730.2021.02.15.07.57.23; Mon, 15 Feb 2021 07:57:45 -0800 (PST) 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=DKxfGSIq; 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 S231897AbhBOP5K (ORCPT + 99 others); Mon, 15 Feb 2021 10:57:10 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:22744 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231938AbhBOPtM (ORCPT ); Mon, 15 Feb 2021 10:49:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1613404065; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TH+EmW0Z3G3B5IjmekyvNoLfQJD+b1qi0smOJeyhcrg=; b=DKxfGSIqzPyCzEKbdhJzAVDaVcHxX0quBA0SCa1dfY3TnfrYrKCAVeS6TzUAZJwo5S+PJb PLATdzxrhg0sdfFEQAVnAla0GoIf2CSCWpNsDMwN54nZbXOOx0ot4yiUdZlQlI3wHsI/fb X+Ea/6yPgVw9n3cMzHeWsJHSx3HDrf4= 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-361-m35r-LzbOHqme42xeCq7nw-1; Mon, 15 Feb 2021 10:47:44 -0500 X-MC-Unique: m35r-LzbOHqme42xeCq7nw-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 88B4C80197D; Mon, 15 Feb 2021 15:47:41 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-119-68.rdu2.redhat.com [10.10.119.68]) by smtp.corp.redhat.com (Postfix) with ESMTP id 94A355B697; Mon, 15 Feb 2021 15:47:38 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 17/33] afs: Print the operation debug_id when logging an unexpected data version From: David Howells To: Trond Myklebust , Anna Schumaker , Steve French , Dominique Martinet Cc: linux-afs@lists.infradead.org, linux-cachefs@redhat.com, linux-fsdevel@vger.kernel.org, dhowells@redhat.com, Jeff Layton , David Wysochanski , "Matthew Wilcox (Oracle)" , Alexander Viro , linux-cachefs@redhat.com, linux-afs@lists.infradead.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 15 Feb 2021 15:47:37 +0000 Message-ID: <161340405772.1303470.3877167548944248214.stgit@warthog.procyon.org.uk> In-Reply-To: <161340385320.1303470.2392622971006879777.stgit@warthog.procyon.org.uk> References: <161340385320.1303470.2392622971006879777.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.23 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Print the afs_operation debug_id when logging an unexpected change in the data version. This allows the logged message to be matched against tracelines. Signed-off-by: David Howells cc: linux-afs@lists.infradead.org cc: linux-cachefs@redhat.com cc: linux-fsdevel@vger.kernel.org --- fs/afs/inode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/afs/inode.c b/fs/afs/inode.c index 48edd8d724d2..0bc7273100b8 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c @@ -215,11 +215,12 @@ static void afs_apply_status(struct afs_operation *op, if (vp->dv_before + vp->dv_delta != status->data_version) { if (test_bit(AFS_VNODE_CB_PROMISED, &vnode->flags)) - pr_warn("kAFS: vnode modified {%llx:%llu} %llx->%llx %s\n", + pr_warn("kAFS: vnode modified {%llx:%llu} %llx->%llx %s (op=%x)\n", vnode->fid.vid, vnode->fid.vnode, (unsigned long long)vp->dv_before + vp->dv_delta, (unsigned long long)status->data_version, - op->type ? op->type->name : "???"); + op->type ? op->type->name : "???", + op->debug_id); vnode->invalid_before = status->data_version; if (vnode->status.type == AFS_FTYPE_DIR) {