From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A43473CA4BD; Fri, 27 Mar 2026 11:13:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774610015; cv=none; b=Y3GVjRZKv5Nc/I7NiiLL037rJivHRZCHFUiyh+L7VhainLf4wjH01S8XT8dod6cApM5fQOsY4R/0g9mxs8DLe+ukShnviapbFbeojifM5L/QzLI2h5UAeAW1GTgDzM+ejuNOH5iO3iYQioAqyn9lD1JyeGLFrTVNw3ayn6S9w50= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774610015; c=relaxed/simple; bh=nJUYpm8Tn5AiiOGRCA1EAgbdYknTx+zBAyjjwOQbGKs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a0GVrjGB/lwG+CFZunDzEw20UkjxZ76Xg6Xj0900/kwKjdiC5B7T192RJmzZLpHIHsJek7AUfKsUkAjnxdZ8t67JQjYRKdE/vtNenaGOqhAaFvvcR245OPVegPdSp0saFW45+JFA1dvicNd27UtyBgRvy35XtbNcvtZu6mycTRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Te1rXvG8; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Te1rXvG8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1774610010; x=1806146010; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=nJUYpm8Tn5AiiOGRCA1EAgbdYknTx+zBAyjjwOQbGKs=; b=Te1rXvG8RLdagVEqYeX1Ahnec0OgXkzCEmT3/UTGjR/Aq7YAJtHqGHvT sxA94AsyXHHcFzK8XyCeQ5GtzSOA75STw76W3zuQsy+1gJaEuATl0etzW hxdidY2o35inGG9xOyQ+DNizCus7XHVpWHr3EItxtYf1Gx9GmfjagewyD mifOqboSXpK2RLAVD8BnIsNrEyAniztWRynlSTkCbnfzDleryZY6w3SCC mJadUHGeVTL47njB4glLxaUf5HQXdbXok0r3DBBrZ+wInV+BnIiMuYuHc f1kDJS/BofN3fJiRQIFJyU7gk8g0CCGZBfv8PNSRem0bkA/qOCz2EpOup A==; X-CSE-ConnectionGUID: GHv96KBxQqOy0tPzA5rLuw== X-CSE-MsgGUID: +SwYqzT4SMK6ZQqSoJnmxw== X-IronPort-AV: E=McAfee;i="6800,10657,11741"; a="79541075" X-IronPort-AV: E=Sophos;i="6.23,144,1770624000"; d="scan'208";a="79541075" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2026 04:13:28 -0700 X-CSE-ConnectionGUID: FbS0Pl5SS72d8TkKR100bQ== X-CSE-MsgGUID: Whxc+k1LRE+NYZQX0v1XmQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,144,1770624000"; d="scan'208";a="224329385" Received: from lkp-server01.sh.intel.com (HELO 3905d212be1b) ([10.239.97.150]) by orviesa006.jf.intel.com with ESMTP; 27 Mar 2026 04:13:26 -0700 Received: from kbuild by 3905d212be1b with local (Exim 4.98.2) (envelope-from ) id 1w657z-00000000ACT-0qDN; Fri, 27 Mar 2026 11:13:23 +0000 Date: Fri, 27 Mar 2026 19:13:12 +0800 From: kernel test robot To: Chuck Lever , NeilBrown , Jeff Layton , Olga Kornievskaia , Dai Ngo , Tom Talpey Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Chuck Lever Subject: Re: [PATCH v5 1/7] NFSD: Extract revoke_one_stid() utility function Message-ID: <202603271905.vZdE0ulk-lkp@intel.com> References: <20260326-umount-kills-nfsv4-state-v5-1-d2ce071b3570@oracle.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260326-umount-kills-nfsv4-state-v5-1-d2ce071b3570@oracle.com> Hi Chuck, kernel test robot noticed the following build errors: [auto build test ERROR on 65058e9e9b20619f920397f529072e853dd43811] url: https://github.com/intel-lab-lkp/linux/commits/Chuck-Lever/NFSD-Extract-revoke_one_stid-utility-function/20260327-081757 base: 65058e9e9b20619f920397f529072e853dd43811 patch link: https://lore.kernel.org/r/20260326-umount-kills-nfsv4-state-v5-1-d2ce071b3570%40oracle.com patch subject: [PATCH v5 1/7] NFSD: Extract revoke_one_stid() utility function config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260327/202603271905.vZdE0ulk-lkp@intel.com/config) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260327/202603271905.vZdE0ulk-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202603271905.vZdE0ulk-lkp@intel.com/ All errors (new ones prefixed by >>): >> fs/nfsd/nfs4state.c:1830:14: error: use of undeclared identifier 'state_lock'; did you mean 'task_lock'? 1830 | spin_lock(&state_lock); | ^~~~~~~~~~ | task_lock include/linux/sched/task.h:216:20: note: 'task_lock' declared here 216 | static inline void task_lock(struct task_struct *p) | ^ fs/nfsd/nfs4state.c:1833:16: error: use of undeclared identifier 'state_lock'; did you mean 'task_lock'? 1833 | spin_unlock(&state_lock); | ^~~~~~~~~~ | task_lock include/linux/sched/task.h:216:20: note: 'task_lock' declared here 216 | static inline void task_lock(struct task_struct *p) | ^ 2 errors generated. vim +1830 fs/nfsd/nfs4state.c 1805 1806 static void revoke_one_stid(struct nfs4_client *clp, struct nfs4_stid *stid) 1807 { 1808 struct nfs4_ol_stateid *stp; 1809 struct nfs4_delegation *dp; 1810 1811 switch (stid->sc_type) { 1812 case SC_TYPE_OPEN: 1813 stp = openlockstateid(stid); 1814 mutex_lock_nested(&stp->st_mutex, OPEN_STATEID_MUTEX); 1815 revoke_ol_stid(clp, stp); 1816 mutex_unlock(&stp->st_mutex); 1817 break; 1818 case SC_TYPE_LOCK: 1819 stp = openlockstateid(stid); 1820 mutex_lock_nested(&stp->st_mutex, LOCK_STATEID_MUTEX); 1821 revoke_ol_stid(clp, stp); 1822 mutex_unlock(&stp->st_mutex); 1823 break; 1824 case SC_TYPE_DELEG: 1825 /* 1826 * Extra reference guards against concurrent FREE_STATEID. 1827 */ 1828 refcount_inc(&stid->sc_count); 1829 dp = delegstateid(stid); > 1830 spin_lock(&state_lock); 1831 if (!unhash_delegation_locked(dp, SC_STATUS_ADMIN_REVOKED)) 1832 dp = NULL; 1833 spin_unlock(&state_lock); 1834 if (dp) 1835 revoke_delegation(dp); 1836 else 1837 nfs4_put_stid(stid); 1838 break; 1839 case SC_TYPE_LAYOUT: 1840 nfsd4_close_layout(layoutstateid(stid)); 1841 break; 1842 } 1843 } 1844 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki