From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 E5D1C1B6D10 for ; Fri, 18 Oct 2024 18:45:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729277161; cv=none; b=ffVHVCk668iadiNhz8HVPqeYXS9PdFT2Q2oGwvkfSz8DUTA+k2Afuk8HwZCvBzl3hinyGDM5dIh+l2gpk4PAMbnbVOt8f1dLitGIcGs864Ac7NJBuc3PMFuqeuks+4gUmoh0Ijeh5UDRfaKS33q3KcQN3BZpQTFjSy79pPV4rzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729277161; c=relaxed/simple; bh=phEX9ymVimk2sUfotD4QxcaLIVr47XMFLKtpw5UFHlw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mbgLl/0vnB6X7syyv+2rdFd4/eh/fJT1EMqM5zu2tkP45P4oLVFIdzZsKzlcX9uQHzUbosDTweAvo2DoQPdoRjGNu5BSlqfHZcjVx2+fU/gmk6/uc72sOeFOIH41qYjSB7RwXPCep4rsHrmqwOtY0luvuCjjN/37iChplTsc1dU= 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=W3yhixbK; arc=none smtp.client-ip=192.198.163.10 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="W3yhixbK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729277160; x=1760813160; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=phEX9ymVimk2sUfotD4QxcaLIVr47XMFLKtpw5UFHlw=; b=W3yhixbKkCiPnHCrW+PpeqCGOPKxKqRTYjb+5G4OyFi5D9TDJDa7aH7O HOpyMwzgd6NHydzlnD02CiIfvgSmnfjZ9cmAFiacz1UKnctIAH2yIbfJE XkvxrH5yKUtJSsPvFpXZ6ZQsdB5vVquA58eA5yy3TY1s8MlByOAf/y4ld ImL/LR7sfLVIo27O81dvx18hnZ+0NVKrQM4YL559JbLyH+je8Ue3QatEb F9D3+c3gwVMLgMznCfETbSrBtf06oIeXzx/tk0GllAaQdNGsQC8+8jRHZ u+8h1emO3sUU+qXnr7ZwNS7HwhOJgOLP93In6zLod9gZxa7EKVkV79GJu Q==; X-CSE-ConnectionGUID: wI8heA0uSUyTvOzSprEIag== X-CSE-MsgGUID: zQwbeqjpR52gbPBmCOG6QA== X-IronPort-AV: E=McAfee;i="6700,10204,11229"; a="40182402" X-IronPort-AV: E=Sophos;i="6.11,214,1725346800"; d="scan'208";a="40182402" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2024 11:45:59 -0700 X-CSE-ConnectionGUID: gfyqjxktSYqWipjgpQmU9g== X-CSE-MsgGUID: 8/lcsv35T3iOGWVLfp224w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,214,1725346800"; d="scan'208";a="83571247" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by fmviesa004.fm.intel.com with ESMTP; 18 Oct 2024 11:45:57 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1t1rz1-000OBt-2L; Fri, 18 Oct 2024 18:45:55 +0000 Date: Sat, 19 Oct 2024 02:45:01 +0800 From: kernel test robot To: Ming Lei , Jens Axboe , linux-block@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Ming Lei , Christoph Hellwig Subject: Re: [PATCH] block: model freeze & enter queue as rwsem for supporting lockdep Message-ID: <202410190214.KgZovHXy-lkp@intel.com> References: <20241018013542.3013963-1-ming.lei@redhat.com> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241018013542.3013963-1-ming.lei@redhat.com> Hi Ming, kernel test robot noticed the following build warnings: [auto build test WARNING on axboe-block/for-next] [also build test WARNING on linus/master v6.12-rc3 next-20241018] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Ming-Lei/block-model-freeze-enter-queue-as-rwsem-for-supporting-lockdep/20241018-093704 base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next patch link: https://lore.kernel.org/r/20241018013542.3013963-1-ming.lei%40redhat.com patch subject: [PATCH] block: model freeze & enter queue as rwsem for supporting lockdep config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20241019/202410190214.KgZovHXy-lkp@intel.com/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241019/202410190214.KgZovHXy-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/202410190214.KgZovHXy-lkp@intel.com/ All warnings (new ones prefixed by >>): >> block/blk-mq.c:125:6: warning: variable 'sub_class' set but not used [-Wunused-but-set-variable] 125 | int sub_class; | ^ 1 warning generated. vim +/sub_class +125 block/blk-mq.c 122 123 void blk_freeze_queue_start(struct request_queue *q) 124 { > 125 int sub_class; 126 127 mutex_lock(&q->mq_freeze_lock); 128 sub_class = q->mq_freeze_depth; 129 if (++q->mq_freeze_depth == 1) { 130 percpu_ref_kill(&q->q_usage_counter); 131 mutex_unlock(&q->mq_freeze_lock); 132 if (queue_is_mq(q)) 133 blk_mq_run_hw_queues(q, false); 134 } else { 135 mutex_unlock(&q->mq_freeze_lock); 136 } 137 /* 138 * model as down_write_trylock() so that two concurrent freeze queue 139 * can be allowed 140 */ 141 if (blk_queue_freeze_lockdep(q)) 142 rwsem_acquire(&q->q_usage_counter_map, sub_class, 1, _RET_IP_); 143 } 144 EXPORT_SYMBOL_GPL(blk_freeze_queue_start); 145 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki