From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 C01C0364942 for ; Fri, 22 May 2026 17:40:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779471614; cv=none; b=FUqIn5QarzEJb5TfmXLAaQvFyZWm+DUFsKA+dqEfzo4S7NQmK+Stu8cKnbPCyeU5YRUYoDNbJJHJXZv0u7stVXSOYSSQBWE2R9cRVVpyUg01Sj4jgRRPQ9STEclgCU+eitUi21Nrnzy9J6HNr+L91lo5+ZSEIMNXYvSjaSCibxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779471614; c=relaxed/simple; bh=KsBnef121WVwnAQtUoHPY6cuATQ81o3munrj1CongwY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AlL2l3mrqEx3ignV7b04oElF3bcSEL9GJujxj8v6LnO9JJ75Q6RLwJUmGIxRfEtkTtO6jIttuxV0teIJG7D/7zQVu8xJoteVTg5t4jLOSEZF1kXUYiwSqf83Yi1DPFL61pCmFMzr6F06M8uuEVQqBOYfWgjXoo84xYRAZmj99C8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NMooIo4g; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NMooIo4g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 557241F000E9; Fri, 22 May 2026 17:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1779471612; bh=WwkBV81wOHvttIz/rOckI+E/ryTlTGksdzGygNXqCHU=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=NMooIo4gZbSZ2eRwNwO+JhDw+hOkxzstzZQf+sfRssOBp4Vsum9nQob+Z/xY4tndM 3z+HWVe+0tl0S8RICpKYTxHdomyTDcYJwUSUBveqXhDKcaCtAyA3LGOc1Reg50os2/ HdpHTVgONOo0l7HH7j3Jazhy9CtIygFHv2nGelZ2zmJA77cP3PwW+ldRdULS6xSvtD D6Ll7AuMO0tMiMbtLHB5Xtg3utLTIzm9G0tH36opU8xfzJEdwXLgjNQI0rW/g+LA1P rXXjZujZftpmMz25k1ffeen/BweZEceHm2IC1Dtq/6wZUhTUFe+2ajrLj94LmuFjZR FUI/2sn3YPkUA== Message-ID: <856eef1c-df34-4f2d-89b2-94b2453f395b@kernel.org> Date: Fri, 22 May 2026 19:40:08 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/2] mm, slab: add an optimistic __slab_try_return_freelist() Content-Language: en-US To: Harry Yoo Cc: Hao Li , Christoph Lameter , David Rientjes , Roman Gushchin , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, hu.shengming@zte.com.cn, Vinicius Costa Gomes References: <20260522-b4-refill-optimistic-return-v3-0-2ba78ec1c6ed@kernel.org> <20260522-b4-refill-optimistic-return-v3-1-2ba78ec1c6ed@kernel.org> From: "Vlastimil Babka (SUSE)" In-Reply-To: <20260522-b4-refill-optimistic-return-v3-1-2ba78ec1c6ed@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/22/26 16:23, Vlastimil Babka (SUSE) wrote: > +/* > + * Try returning (remainder of) the freelist that we just detached from the > + * slab. Optimistically assume the slab is still full, so we don't need to find > + * the tail of the detached freelist. > + * > + * Fail if the slab isn't full anymore due to a cocurrent free. Just found out I reintroduced here some comment typos that were already corrected in slab/for-next and fixed them up again locally.