From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 84EF82749CF; Tue, 9 Jun 2026 06:47:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780987656; cv=none; b=Jw5aPTIZ2+JfPJNC4Lgk/TwmM8o6c95ehIYZfNuTpjd249ait77zHG0jNqW5W/OFjaBGu5Ywa6jmQp6j/tLIzKcQ+VSU0Nm0+IX1DkDk0Aflh0PXfpKyxi261lBYbar623x9HB/8XFoNEHCmjymes5IyerNEuzrZbmoxlmCR/3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780987656; c=relaxed/simple; bh=JtgXQ+CUhI8fqj7NEQN4vNa7+C8S/fPck+oJyjJdK2k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MQ5JSz1G4m6K3gPMr6hJCdrcAxDtxd8OfMwPNTVG80NfbvVvKruWeLh5adea316GFQeRnHXgoVys1XkStP5snf8pwpMD68lJbbLH43v6mV7K89WMVfhksKNfyYJKpFTk1yMe79N6WBHxGD92Xs1dOsdAwbrh4yXEG/tXxmEEh5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kpQ3nSGT; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kpQ3nSGT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1780987656; x=1812523656; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=JtgXQ+CUhI8fqj7NEQN4vNa7+C8S/fPck+oJyjJdK2k=; b=kpQ3nSGTVttOwWGNobS+IC4i0fCpDM0hevIMLeDnN+FnHSp8Tg+o2+7+ iUsl2bsFYQgzGqDCJmiYP2JI+s8uQ3ORT7OiJiPFI8pf5fCypASbgoLQt KSoaWRnfjHwlUWmk1m9OXF7TEkU/q9frDYMyAbqTWmnRlcFyIbsGHNfQL 6woofQDB5pHRrQFuvzDaCgylnkMZi2AndsQgHZRc9R3vYHmxV7V75O8ZX m5OqH+3NQeh7He0w+LN/EFlXvmxNneSNq2m6Xyf5+qcDa4TOICmBMz6vn ALcebFmFidcODUCjYvqwgdpnNfQXGV3PZjSBYIAk6UICLScxlOMgPNWLD g==; X-CSE-ConnectionGUID: QDUj2fh0S7aVBJXsO1qtFw== X-CSE-MsgGUID: 8157XAufR8inDXGuQzb67g== X-IronPort-AV: E=McAfee;i="6800,10657,11811"; a="81783717" X-IronPort-AV: E=Sophos;i="6.24,195,1774335600"; d="scan'208";a="81783717" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2026 23:47:34 -0700 X-CSE-ConnectionGUID: +shHRdOKTfGiz+VFC8i6ig== X-CSE-MsgGUID: c7oiHZEDR2ikmK04/uJN0A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,195,1774335600"; d="scan'208";a="250060711" Received: from egrumbac-mobl6.ger.corp.intel.com (HELO localhost) ([10.245.245.39]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2026 23:47:22 -0700 Date: Tue, 9 Jun 2026 09:47:19 +0300 From: Andy Shevchenko To: Kaitao Cheng Cc: Muchun Song , Philipp Reisner , Lars Ellenberg , Christoph =?iso-8859-1?Q?B=F6hmwalder?= , Jens Axboe , Takashi Sakamoto , Andrzej Hajda , Neil Armstrong , Robert Foss , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Christian Koenig , Huang Rui , Eddie James , Mark Brown , Maxime Coquelin , Alexandre Torgue , Laxman Dewangan , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Davidlohr Bueso , "Paul E . McKenney" , Josh Triplett , Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Matthew Auld , Matthew Brost , Waiman Long , drbd-dev@lists.linbit.com, linux-block@vger.kernel.org, linux1394-devel@lists.sourceforge.net, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-spi@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , Randy Dunlap , Christian Brauner , David Howells , Luca Ceresoli , Kaito Cheng Subject: Re: [PATCH v2 00/14] list: Prepare entry iterators to cache cursor state Message-ID: References: <20260609061347.93688-1-kaitao.cheng@linux.dev> Precedence: bulk X-Mailing-List: linux-spi@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: <20260609061347.93688-1-kaitao.cheng@linux.dev> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Tue, Jun 09, 2026 at 02:13:33PM +0800, Kaitao Cheng wrote: > > This series prepares for, and then updates, the list_for_each_entry() > family so the common entry iterators cache their next or previous cursor > before the loop body runs. > > The first 13 patches open-code loops that intentionally depend on the > old "derive the next entry from the current cursor at the end of the > iteration" behaviour. These loops append work to the list being walked, > restart traversal after dropping a lock, skip an entry consumed by the > current iteration, or otherwise adjust the cursor in the loop body. > > The final patch changes include/linux/list.h to keep a private cursor in > the common entry iterators while preserving the public macro interface. > The safe variants remain available when callers need the temporary > cursor explicitly or have stronger mutation requirements. Something is really wrong with the patch series email chaining. Patches 3, 10, and 13 start the subthreads. Please, check your tools and fix them accordingly. Note, `git format-patch ...` should not have this "side-effect" when used correctly. -- With Best Regards, Andy Shevchenko