Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1287402pxb; Fri, 21 Jan 2022 14:25:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjSfvW787A7Nj92SUCuoh0LMrND/4uz0RBMZbpc6ZZXuXwSRD2G5fEiYKFSO2jgO6v7e7m X-Received: by 2002:a17:90b:3148:: with SMTP id ip8mr2639341pjb.61.1642803916468; Fri, 21 Jan 2022 14:25:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642803916; cv=none; d=google.com; s=arc-20160816; b=we7zYTWXxoPjseTG5Kp7iIICxMTpSo1PtKUv7KUFso3RUJ4cJw0ZtijsgqCUZkwupv D3zhL+iR896/buXXMo9lqygpEv2/pErnLD7KS2vwiH8wtVS3z/JBUokaD0CI4rMM2hK6 S7+aMS+ni75R8nLD2J0ktDjeZunit5fg+NNVT+idP8Zng61lrx0H8mAqzznvg0PyuxcB ysfPmgZkdKnMFS1uJg61HNZwToVZR2c9ToBVFqZ55uLGSu3e2XefFP9N5gk46ZDCQa1Q P7JidJuAxQVJCu4WQlg7Wsa7Q78n5mNmdCzpTCplAY7pGWfbTFKj+DhK+C0DPiGh6DJk K5bQ== 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 :dkim-signature; bh=sW8ehN6Hzkq3F2pX0JmHoCxEG6Zo3yhNg1meJqbd2PA=; b=MkPCmKX5MR73xEN/zheEeLrDCa97mtkbSwW/Y0qxrcWwq/j1Bpsz9rLuEosv+G3N4A 1/DedTtU9HQRltEUEnemm0UOJkb8jKrgFV8zxR6q4I0pHskgkVZha2T6TRcc2GsbOEhZ nzBHFj364QjuRe+eQ/3+/AGHWgXn8x+5MoiX8U/rSwn7SXLah81UafVTJCtP4jRkj9QK 7AY6/f703DNgXIBCihOpXL5Oj3p7zlJjegXVGuhnLqpUPML26c4NMhmgI2tDfUnaeh/L nH8wOZCdHzAyZKkaACNZ9iWRQd/raS0neOo7S+BVKf5REuAZSflF/thxqFwYUKfVWERA rBWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=isXCpz4d; dkim=neutral (no key) header.i=@suse.de header.b=opIu8da2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x6si6738404pjo.82.2022.01.21.14.25.04; Fri, 21 Jan 2022 14:25:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@suse.de header.s=susede2_rsa header.b=isXCpz4d; dkim=neutral (no key) header.i=@suse.de header.b=opIu8da2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377015AbiATQ3x (ORCPT + 99 others); Thu, 20 Jan 2022 11:29:53 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:43354 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376939AbiATQ3w (ORCPT ); Thu, 20 Jan 2022 11:29:52 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 260A62195A; Thu, 20 Jan 2022 16:29:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1642696190; h=from:from:reply-to: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=sW8ehN6Hzkq3F2pX0JmHoCxEG6Zo3yhNg1meJqbd2PA=; b=isXCpz4dYPVHoDVI0GsoO/Nq1d+UW3BiSThtZwybrbNVLvZJnaUvJJlQ6I+SwqX4si6Fwl SMRpQVOlS6rOREOyXqe4LvyJhVH0nEeNrO3Ym+RKkN5pKtzv9b9BFg1WVgGCytH6yi87wL YafFTQLJYKETzCDjQufMV1ODcvfNP78= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1642696190; h=from:from:reply-to: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=sW8ehN6Hzkq3F2pX0JmHoCxEG6Zo3yhNg1meJqbd2PA=; b=opIu8da2LLuYNR0aDKPyth4dVWw5d8fT2gQC/jytzOM5xJ1Ii1Y51sTAtNsRka2XXrbOyV vNUhpkP/Bmt8wBCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1336113BE3; Thu, 20 Jan 2022 16:29:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id oy6pBP6N6WHyWwAAMHmgww (envelope-from ); Thu, 20 Jan 2022 16:29:50 +0000 Date: Thu, 20 Jan 2022 17:29:49 +0100 From: Daniel Wagner To: Ming Lei Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Jens Axboe , Hannes Reinecke Subject: Re: [PATCH 2/2] block: hold queue lock while iterating in diskstats_show Message-ID: <20220120162949.5y6t5u6dbtxw2w5y@carbon.lan> References: <20220120105248.117025-1-dwagner@suse.de> <20220120105248.117025-3-dwagner@suse.de> <20220120131936.mlug7nhnoe73abx5@carbon.lan> <20220120140126.ntzvrcmczd7pph75@carbon.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 20, 2022 at 11:37:00PM +0800, Ming Lei wrote: > Seems more likely nvme recovery issue, tags is changed even though > ->q_usage_counter is grabbed in blk_mq_queue_tag_busy_iter(), which is > added in v4.19. > > You may check dmesg log and see if there is any nvme error recovery info. Thanks for the tip. It's likely that a recovery is running although there is no entry in the logs. At least I have an idea what could be the problem here.