From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (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 37A0A3328FD for ; Sun, 17 May 2026 18:52:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779043928; cv=none; b=eQUbBka8AgXR+gVQ4WN5NNqB2C5d6FqEBnA/1SylWUPBndroCBUCGJTK0XZscGOtVSC7Cz7KcH6hzuQ6SxgIpQA0y5Q4pV2Yd9B5bhN5Fpz7gjTeBXGxvw3z3Sz+DUwd1qlsj7jspZXpO47WRr/FJqtbLV/Zp+GDifRgRZu2wfg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779043928; c=relaxed/simple; bh=dEI0dHO4/KkcUDU6wf5hMM3cRP/Uvov+/pcBQE3YBOk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=W6v10hXuumM4oTkV2R6Zf/oASNwpTg7QD4m+DEWOxad6vQXoHIrOy3InqCLV0fUl7+85Po5BLW56dmF2XbteG+8A6OlIjkIdIz5Z9nUpo6OgF7Xd0OruAuQcdkannMUtrcsPx+m8mc6tiXOql4uV56Tr0SZM7uIeHzu9PumVfF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=soleen.com; spf=pass smtp.mailfrom=soleen.com; dkim=pass (2048-bit key) header.d=soleen.com header.i=@soleen.com header.b=SX7ltOKb; arc=none smtp.client-ip=209.85.160.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=soleen.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=soleen.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=soleen.com header.i=@soleen.com header.b="SX7ltOKb" Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-5165195c8b0so21963751cf.0 for ; Sun, 17 May 2026 11:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; t=1779043925; x=1779648725; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rMikKmjIRuhmCNsf7ga38/uSHQiRF0nG0AquMF025/Q=; b=SX7ltOKbDqicCJW23t8jAciw5Vsm4yNsVJ6Z+qUjPO9M9yPi6UtaAy86NR/Brh5Kme lYvZWWbknpMYomOS4ckwZTRq9ZCA6yJ5ls8Mef47zHwhtxCduJWd3xJD2qdUlhPqAN+u OI/Olu95iUM2KLqqlsQfXALMaNyPVxR+sjoJTa0p1NvXJG6YLvHVqFcSLNK/Ye0FOJag QKcXKJEXmUmLHlNYrPFYdek1VURSo5PIIRoa3cIPenGZaVxLmD4WGpHdZzvqBVWRLIJ3 6JZNVyKXm7RvD1u3iA7zjFGniPOuzB8Vn8+LA6+m8FQPokL8h62a7zkvHCNtyIiUBe+s e5KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779043925; x=1779648725; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rMikKmjIRuhmCNsf7ga38/uSHQiRF0nG0AquMF025/Q=; b=TCLyf3+gGQLO/lpc7llW1zHmToC4YgSbMiqtHVx5nkHTqRlJnpLoohXl85iOTOKsxB H8nmQ3p6tunAOGle02XVMxynMPvBHWjiuzF3slqThdor8HZqgsqGhz5jZYEjxoD+s6P3 0NmwUb3dx7bpT5DGvY5zua3UUIk3nxtg8HpSQyRybaZp2tsmC6fbvvJRok6KcPsJRLw+ Ca8f6QDjIjq8JAbGRgk7UuplZ/g1U6BYvBabyO4j55NKcZXug60dAYOVX9QdNsWHq8+M bLKuRLtH1hO1Tolo8WY1341Kd2qjLzvSne0wWY72hCgxZ2Kje+i/L8nJ+le2pu8FVfo9 p2vQ== X-Forwarded-Encrypted: i=1; AFNElJ9Zc34jhX01uiO9Kff9R+mnqKd4diCKGIXQUiMKaQDneebqOKz4ae5PnETmUBXJNAzqNYN6kOVmZd4=@vger.kernel.org X-Gm-Message-State: AOJu0YxtAHmcooujT2NuXG/Y3/JbnyJpffD7Fe5jHpJrBoUJm/wrabQc kQLUiX3gGRJtYyk/xti4E58tVkn6VtIxwaqKdhNPoAxxNFqny4A8wA306txb/pWPhSc= X-Gm-Gg: Acq92OFTlOQeY4rs0udG/I8hpdx/VeGTFAQ06aH2hKwj5z1XkUmZyAj+aNWMaWtKx92 i67JuLvNZnZYdIXbGfIu6JEp0P3HkD2nv2euun5SmxXp7Q9xktbdViW3VmRU8YF9moZbMgVdqRc wCC6kqU7k36WHa/E21hcLhS5jSALFkWfX+6hk/UhAfu3II1du+8GDzWXV0FrH2DmJkNSQzzkP5T oRrgxVIeyk+g1SVI49Q3cDMUPXM/V7WIvx5AY2VY5vVxutVaBgqmsXBKc+vmoM1t0e8X8yjfPPu fglPY8jSCgnWlqC9MPd1ON9CI8w719lkAngm6Br84x71UwY1bBR0QEd5sNSfDs/WZbMYl///TqT 5m/GIbF3Uv8JQZonRjbDOiwmN1iddxn20mQYxRkiwXl4nwJhPMuGBaKjjkWuVgc9834F5K2m9/k iEWhkBahwwOfHXxLTYCfZCDePJ58ZqcuCCX/alaIDuLriDg0BeFoo= X-Received: by 2002:a05:622a:6201:b0:50e:5819:d7e7 with SMTP id d75a77b69052e-51659ff8947mr173729421cf.3.1779043925075; Sun, 17 May 2026 11:52:05 -0700 (PDT) Received: from plex ([71.181.43.54]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-516456888f6sm114656631cf.3.2026.05.17.11.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2026 11:52:03 -0700 (PDT) Date: Sun, 17 May 2026 18:52:02 +0000 From: Pasha Tatashin To: Mike Rapoport Cc: Pasha Tatashin , linux-kselftest@vger.kernel.org, shuah@kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, skhan@linuxfoundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, corbet@lwn.net, dmatlack@google.com, kexec@lists.infradead.org, pratyush@kernel.org, skhawaja@google.com, graf@amazon.com Subject: Re: [PATCH v2 05/10] liveupdate: defer session block allocation and PA setting Message-ID: References: <20260514222628.931312-1-pasha.tatashin@soleen.com> <20260514222628.931312-6-pasha.tatashin@soleen.com> Precedence: bulk X-Mailing-List: linux-doc@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: On 05-17 20:31, Mike Rapoport wrote: > On Thu, May 14, 2026 at 10:26:23PM +0000, Pasha Tatashin wrote: > > Currently, luo_session_setup_outgoing() allocates the session block and > > sets its physical address in the header immediately. With upcoming > > dynamic block-based session management, this makes the first block > > different from the rest. Move the allocation to where it is first needed. > > > > Signed-off-by: Pasha Tatashin > > Acked-by: Mike Rapoport (Microsoft) > > > --- > > @@ -77,15 +77,16 @@ > > > > /** > > * struct luo_session_header - Header struct for managing LUO sessions. > > - * @count: The number of sessions currently tracked in the @list. > > - * @list: The head of the linked list of `struct luo_session` instances. > > - * @rwsem: A read-write semaphore providing synchronized access to the > > - * session list and other fields in this structure. > > - * @header_ser: The header data of serialization array. > > - * @ser: The serialized session data (an array of > > - * `struct luo_session_ser`). > > - * @active: Set to true when first initialized. If previous kernel did not > > - * send session data, active stays false for incoming. > > + * @count: The number of sessions currently tracked in the @list. > > + * @list: The head of the linked list of `struct luo_session` instances. > > + * @rwsem: A read-write semaphore providing synchronized access to the > > + * session list and other fields in this structure. > > + * @header_ser: The header data of serialization array. > > + * @ser: The serialized session data (an array of > > + * `struct luo_session_ser`). > > + * @sessions_pa: Points to the location of sessions_pa within struct luo_ser. > > + * @active: Set to true when first initialized. If previous kernel did not > > + * send session data, active stays false for incoming. > > Hmm, why addition of a single field changed the entire block? :/ Yes, I had to decide whether to shorten the field name or change the entire block. I opted for the latter. :-) > > > */ > > struct luo_session_header { > > long count; > > -- > Sincerely yours, > Mike.