Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2677089pxj; Mon, 14 Jun 2021 04:44:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/u58cklngfLkP7g4QXlI0BiZcBiVGwmghsyi7WeIDpu8Vu6xlN90z8UiYQhLo/E+r+3Fb X-Received: by 2002:a17:906:8608:: with SMTP id o8mr15020329ejx.72.1623671062512; Mon, 14 Jun 2021 04:44:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623671062; cv=none; d=google.com; s=arc-20160816; b=gFVePTREgbM2b5tjIrarpFj/VqdlBrlAn1MYqujrd5xSyxPyw7aSVsFGPQDhZiAy2s ejgT+RtVhgXXpj7h5f11esYP46PR9LqyWepUHsxSq3zhxxM+CitRl1+6x3/E4KMGi9gP YLU03DBP/JLqpfqGLZAIOQG/mmIFIxkSDwDARRUlYO8E6FkDx6wgMcf3O0C4I0LaY5kc LbBU2SbHURb+I5Kahg1R8XzGp2d5wLgIcnWzveiYRbi2JsIEo6JeDOt64M0kWkye1z9A j1JbvjJ9FIh56H5Flyacpcib2wiL67L+QvA0oWQfE3wDgsk+fwRORXtcyRsW4n3vUCQM jG9A== 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:dkim-signature:dkim-signature; bh=SzwBqXjJZzX3pYRcE/53+PJH0Y1vEg8AUTJdvK/4KpQ=; b=G+LOXCqTCERLMm8zI0HUwq65m+nYCxkL5D1VtBg8ehPTeenyPMJJ7BIciLaMZkfcTb EhXXQZ9sonMzw8bMFv86nLTt1UBkitdnowJWeysYDzlFexFrlZzkL/FPQ2eAO2WqfLlQ w3rQbDnIaM8ntUi3wMvQWwD35W1mRt6B5nd6FrrB3iMeebMGjj4YjSp8ror8MGDSd9Wa 4mKG9sLrI0DUfGVjsNrAxprw4HW7BY8nVXCtagGBe3pvzvmk92oxZttmPd5azXEYYDFb kfk/yNjHnzHMNDhb6inM3ecaNwshb1gBKEQEAmU0vjju7jK46lIBrnGkk0zHfISgOx1b rPBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=xRWWEKeS; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=l+6PgBj8; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=xRWWEKeS; dkim=neutral (no key) header.i=@suse.de header.b=l+6PgBj8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz16si12287940ejb.168.2021.06.14.04.44.00; Mon, 14 Jun 2021 04:44:22 -0700 (PDT) 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=xRWWEKeS; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=l+6PgBj8; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=xRWWEKeS; dkim=neutral (no key) header.i=@suse.de header.b=l+6PgBj8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236768AbhFNLoL (ORCPT + 99 others); Mon, 14 Jun 2021 07:44:11 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:60854 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236507AbhFNLjK (ORCPT ); Mon, 14 Jun 2021 07:39:10 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1C63121988; Mon, 14 Jun 2021 11:37:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1623670627; 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=SzwBqXjJZzX3pYRcE/53+PJH0Y1vEg8AUTJdvK/4KpQ=; b=xRWWEKeSVPXTdeWX1at48FqkgF6bnXkJBUFe7y8AbORpkUZ9+WcILEs+gCJHjWqnssQuDy 8zVbZ5TIan8oOuWLzhC9kGSCCzvGj9vxaXbGG4wnjEhmrqzSYMU3JwhHnVIxuDRNI0CAxV VsQveP5R78SRT8zUKtwySZBJLXHIy5w= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1623670627; 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=SzwBqXjJZzX3pYRcE/53+PJH0Y1vEg8AUTJdvK/4KpQ=; b=l+6PgBj87+U+WgGF1g4/O8NRjjiRgCLhiuQiLzRTjhS78abvu5VpgB7cgVGqwSmsxX7szG MlUFVNCtdRaDw5CQ== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id F20C8118DD; Mon, 14 Jun 2021 11:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1623670627; 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=SzwBqXjJZzX3pYRcE/53+PJH0Y1vEg8AUTJdvK/4KpQ=; b=xRWWEKeSVPXTdeWX1at48FqkgF6bnXkJBUFe7y8AbORpkUZ9+WcILEs+gCJHjWqnssQuDy 8zVbZ5TIan8oOuWLzhC9kGSCCzvGj9vxaXbGG4wnjEhmrqzSYMU3JwhHnVIxuDRNI0CAxV VsQveP5R78SRT8zUKtwySZBJLXHIy5w= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1623670627; 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=SzwBqXjJZzX3pYRcE/53+PJH0Y1vEg8AUTJdvK/4KpQ=; b=l+6PgBj87+U+WgGF1g4/O8NRjjiRgCLhiuQiLzRTjhS78abvu5VpgB7cgVGqwSmsxX7szG MlUFVNCtdRaDw5CQ== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id XLEdOmI/x2ASFwAALh3uQQ (envelope-from ); Mon, 14 Jun 2021 11:37:06 +0000 Date: Mon, 14 Jun 2021 13:37:06 +0200 From: Daniel Wagner To: linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jens Axboe Subject: Re: [PATCH] blk-mq: Do not lookup ctx with invalid index Message-ID: <20210614113706.astexefgfo4tuejr@beryllium.lan> References: <20210608183339.70609-1-dwagner@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210608183339.70609-1-dwagner@suse.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 08, 2021 at 08:33:39PM +0200, Daniel Wagner wrote: > cpumask_first_and() returns >= nr_cpu_ids if the two provided masks do > not share a common bit. Verify we get a valid value back from > cpumask_first_and(). So I got feedback on this issue (but not on the patch itself yet). The system starts with 16 virtual CPU cores and during the test 4 cores are removed[1] and as soon there is an error on the storage side, the reset code on the host ends up in this path and crashes. I still don't understand why the CPU removal is not updating the CPU mask correctly before we hit the reset path. I'll continue to investigate. [1] echo 0 > /sys/devices/system/cpu/cpu#/online