From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (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 B238331B100 for ; Tue, 3 Feb 2026 17:56:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770141406; cv=none; b=gQ5zlfPknVxilxuktMOYxekuJFSqq/fWlYmcgVhzCvC4+cgMOpimwCs3vf10IK/cEB2I2pCzaZIpWrN38x0oPkP3G5V3BphGjB+Czh1G75j4QrFagzrZMAv4kvTqhR4mysWrQxvNBulJFxosdLwdFL2cpjTZL94rxegEqAoCaH8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770141406; c=relaxed/simple; bh=e0nBTTMuiaExe/GwHMNe0Ecnx69vHQ+x3OD8LmlDUMs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=n9vk691NrE4sy0nLp0L2ZoAeiZopemtGT0770CU0/ogF1OqU19/hiLvrEiOzQSE21XE9yj+qcMxwqGym4gSEtoJzSUz4yPkZutK5whABZVRIZEqroh5GObwFzbu699WZ2+Nr9XFvOIdPsaUE10M1rOnVPquexSeweItMAfK8Fp0= 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.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=SwY71fbE; arc=none smtp.client-ip=209.85.167.182 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.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="SwY71fbE" Received: by mail-oi1-f182.google.com with SMTP id 5614622812f47-45c70afbeebso3914867b6e.0 for ; Tue, 03 Feb 2026 09:56:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1770141402; x=1770746202; 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=HmvPoVhvFj2es8gtBbt+lcfOeEJSDYjB7LnU957mXV4=; b=SwY71fbER6Cuorcs9+sLw865e+tgv6GsvaJy1uLVw58SJR0nUAYnbrWktrm0V+pU/Y EG5tx3beHcIxkfitYsIWThH2Qxl9/SO2crkp//vHcufc9ywUGhOxEBXnpc5yJYQsO/Kk 4R5pqUUq+SWe7fQcYQRnUAHlDvC393yq/AW0/hqLSOwf9j42cRsfe/Ct2K12flJgAYkT xUiiLn9ja8bNzhobJ/lCZR0Ij36Bv5ekC5ls0pwG6KQKFwm7cx8P5Y6iPE6S2E8hJIeW +p+FaJ5/vTF1v0qKG4O27mbUmJAGU2G2dZYt2NZ8mdSjSjC57Kam2Z0wahQ7xn/1e5nr uMFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770141402; x=1770746202; 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=HmvPoVhvFj2es8gtBbt+lcfOeEJSDYjB7LnU957mXV4=; b=RssFRgZPYLMFjukMiobwpAHN9VhvfsnT4sCYTQJ5c+efkbn4lyT0SoY7/RU7enWh1e Li3RJJPyS2FI4vXj3zAZi1xOFT3Z9ci132Gyu6i2BXny/Jo1g7XKpQTmICumQDBRP1hm luUNFzanDREogXFpkgIRfvNGiZWEAamiMRF/8TiaowyvuRUNNoD8aMkIJYoe++H2cSCm AXo+yiBxIhcI0oUBPCwpa6PPmZYFOYHzwWZ1euJVrfBKmT5xz2T7YThLeouFI1D9CGNf NNun4R4QHj8ccwhvOQUed802Sa1AMUyO51Y/2ryiuTUds2yLfR5HiHwE1knaTbJRtAmt vnNw== X-Gm-Message-State: AOJu0Yy5Zz2VcCFTrn4MMViLcjlzzoL1IF4Z/XZuFvXadigBVIRs4NeH 67zYV6geEFKxqWAyiJxkL6AnvfzrkpjIJW909sV+VnoTVpyZdY++jCv17grDxWFBpY8= X-Gm-Gg: AZuq6aJl0cterKRX3F8FWCLoOiJTJF4BOiKC0sNIu92p1SUoyepi9O/kEwR56c6DDAW NH0p35ePfMSS10qA7weT3wvT2lp5DWmJmo0tkQluWmaCUECNNT1CpsbhetLF1u6aUrUu56KfzTS CJMzuwENnAhvI9oh9X+XCsxvNFDQ+Mqe2oCtJRORRi8rHBDxn5rr8Stw4OJZwzi++UOlkBw8M+H 697WAKd5qav9rz0+xZAfClJDNbbSVXw4RT5DMErC2pnr6ollQXAGVqGKDwDNvOTCx4a10jt/8fv VMzFihym1Q3iZBspJK6wamt0lvjzE/CK2EkPVLfhoz7uy77dQ69lbveZVsVMxPPrsA8RCCpGR7q JeDzAMHOJ7hvJwRmnhzeCUiioJUJG26a/nNCz2opF4o8h+Dxgvm3NPsi+dvG4VuLi53bMEhkVBk Bu2S0hhdmXnmHveI9Wo23kydYmgWVsxGbSdh4AIEn7nh7YTG2/Wtx9hbnkBG6wPa4zkvrK X-Received: by 2002:a05:6808:3006:b0:450:bb92:7fb6 with SMTP id 5614622812f47-462d59c4186mr105837b6e.39.1770141402458; Tue, 03 Feb 2026 09:56:42 -0800 (PST) Received: from [192.168.1.102] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 5614622812f47-462d66595a1sm5338b6e.8.2026.02.03.09.56.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Feb 2026 09:56:41 -0800 (PST) Message-ID: <686395a6-c20d-4390-a3fd-110d6cfa3b8e@kernel.dk> Date: Tue, 3 Feb 2026 10:56:41 -0700 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: [PATCH] io_uring/fdinfo: be a bit nicer when looping a lot of SQEs/CQEs To: Keith Busch Cc: io-uring , =?UTF-8?B?5piv5Y+C5beu?= References: Content-Language: en-US From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/3/26 10:54 AM, Keith Busch wrote: > On Tue, Feb 03, 2026 at 10:06:18AM -0700, Jens Axboe wrote: >> Add cond_resched() in those dump loops, just in case a lot of entries >> are being dumped. And detect invalid CQ ring head/tail entries, to avoid > > Hey, another cond_resched that lazy preemption would make unnecessary! Yeah exactly... > Looks good anyway. > > Reviewed-by: Keith Busch Thanks! -- Jens Axboe