From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B34193FBEC3 for ; Fri, 26 Jun 2026 16:35:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782491760; cv=none; b=eu0UjOPeBmsBCgwN7rNxA/Une89k0v+yIOISN/ou0UzWYBdhh/bADujzNYgu4bW+Z+9eEvuO4p3ZCwHj/+qNBcJGECR1F8h0TKkNlzQbj7sRVWyhXpBvDJvd6loC4PQrRzxXQan65BCWWwGzMb5dDa6YdIxQ1/BnkJe/LPh9A8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782491760; c=relaxed/simple; bh=Aj0WTVmhS7aLZdTxpX3GN4F4MUtqt5ZOTBmOAX3AZnk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=u42S+K6/V/SuzCDYYtqgzm5J8+03YLbpgW3WuvwU+bXAZ9CCk+sZPtYgfxThrJtwJCGrDqE3d7Xh12AiLbRj8z7YIDO4YGxKV+zCGPfRakZF2b+OxRlvfkUBmsOXPGkewKYdgk1BWNZFWByf2xfyyOp5IxbB1HzJGuxmDXitO7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20251104.gappssmtp.com header.i=@kernel-dk.20251104.gappssmtp.com header.b=hKY081A0; arc=none smtp.client-ip=209.85.161.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20251104.gappssmtp.com header.i=@kernel-dk.20251104.gappssmtp.com header.b="hKY081A0" Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-6a11ee16bafso892025eaf.0 for ; Fri, 26 Jun 2026 09:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20251104.gappssmtp.com; s=20251104; t=1782491757; x=1783096557; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=5LryfOXbo+aV54LLElCiIhQ/hcSrjxvLdKj9Okup0D8=; b=hKY081A0NT3z6rYlkqNgnCl/Mr6z49bh4in4nZFSZC19YwBWpEJcZoDvJAXnFjovVq 8FNO6QUIDerKBwIQ4Sw6nTyu+BoUsSVTKxagkwXXVaVUCAebg4yspd5d6LnWLlNb/+xR wRNSkbZojxV2U7b7mtxQD/rZn0mjy/yd+sFbKYoc0g99EURXkJgRJhSSOcasYifbpXPf dKa4Z3Bfro2bK+gF36LN/vnufj9Nqcdg3TCxWar92wbkuyHs6rLg3o8HRbr5xfnBZSV6 J3OMzpCdfEcjm+BxlbfkGLnlaj15pT/cOMPPmXLFRcAz/ey3dKMfllfI4F5okR0bVwrs esuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782491757; x=1783096557; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5LryfOXbo+aV54LLElCiIhQ/hcSrjxvLdKj9Okup0D8=; b=Sr35yZ6wx2/DLRMrGdhE4SjBl8TAcEDFNzEWLvBo6WujPwgrYw1GuwprIiCQFMvbhB DhtS8rWkANCa/fDljazb671i07lSGs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5 with SMTP id 006d021491bc7-6a135246610mr6365519eaf.55.1782491757636; Fri, 26 Jun 2026 09:35:57 -0700 (PDT) Received: from [192.168.1.102] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-6a1414ec350sm1669115eaf.12.2026.06.26.09.35.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Jun 2026 09:35:57 -0700 (PDT) Message-ID: <94614dd9-9351-4a64-83dc-4fc87e377e59@kernel.dk> Date: Fri, 26 Jun 2026 10:35:56 -0600 Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [BUG] RCU hang with io_uring nvme polling To: Keith Busch Cc: Ben Carey , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260626150946.287781-1-benjamin.james.carey3@gmail.com> <85d1f999-7778-4c74-9d72-b8ac8500de31@kernel.dk> <1932a509-4e27-485e-8e09-1da67e0082c8@kernel.dk> Content-Language: en-US From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/26/26 10:33 AM, Keith Busch wrote: > On Fri, Jun 26, 2026 at 10:06:49AM -0600, Jens Axboe wrote: >> Ah good catch, I missed that. Should've grepped! In general, IO should >> either get polled, or if the device is misbehaving, then timeouts will >> catch it. That said, haven't looked at the actual report yet, will do >> so next week (unless you beat me to it...?) > > I'll give it a shot! > > The test has 1 polling queue with 2 jobs dispatching. One of the job's > polled the completions for both. The other job is polling for no reason > at all with nothing outstanding. The only thing that can break us out of > that loop now is need_resched(), but that appears to never return true. Yes, it's a bad configuration. I bet it's as simple as: https://lore.kernel.org/linux-block/20260617155051.1266079-1-anuj20.g@samsung.com/ but in practice nobody should configure a single poll queue and run multiple jobs, particularly not when the object is framed around "energy efficiency" as this configuration is pretty much guaranteed to waste 2 cores, with most of the time going towards spinning on a lock rather than doing potentially useful work. -- Jens Axboe