From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (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 659682E54BD for ; Thu, 23 Apr 2026 18:13:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776968032; cv=none; b=svT53OPiXVCj0YWdiezyhg07lnquyhrMQVHSr+aA7xFrT7nm87r5MO3HV1r1zJ6IBjos1maBx2+swbbNRCUjpsZ3pauFaHF7zkZErl3yk7WIgLNw8OdRyZHSwSqYyhdW0Ox/GSL0lrm8rdEafgdNzpiO8m2FP0hpT/P1gz7IZjk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776968032; c=relaxed/simple; bh=dm4lE60UQQzNDJWwdGo7LM2G1z4z8jIYeNl2oGEXoX8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=f671SQj/pE/vcvC74qvR4/6VshCWtlBk7qGNbjHuFCzGDEKYToKdLLJAS62tu3VSR3BlGT4WtG0VlTZ3JXmqq2YHDl1es6BXltRtN+CuvmafGVS9ceOiyQOWnJPh/HxooK1J4zsl2inw9H2PwVFZVY1kIM3oL5xh2zHN20VbuRw= 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=X5H3vWZe; arc=none smtp.client-ip=209.85.222.170 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="X5H3vWZe" Received: by mail-qk1-f170.google.com with SMTP id af79cd13be357-8e0a768331cso794227985a.0 for ; Thu, 23 Apr 2026 11:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; t=1776968030; x=1777572830; 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=3+ensqe6zjCbzuMF9mpOUvwz9y3ZF8YoEKZ4oK6PKrM=; b=X5H3vWZeLdpHp7XA9e1182JQ043oXLQNoed184qO/qTPmvzyF8GgTew8VNx0J/RUvn iUiJiQRFaka1PGnCQr5Fz3sJx2/ZOuBKFFih0rX1pYNrVcbxVVwEjZmoRh0OghChPORP SMgMrNgQ2px3usmT5ermWAuDI1nAxrFFMM9lJm6igvzRo8zmEOr68xgtdXXOUYpJmdHX cKeqD90pPSDosgEufLu9Ct6i0tn5JxSVGcX1pj/yopJRKPUe8zLEIlV0Pl05BWP6wlNu RqBZx3uoeDYyXu0jRKqWF7qpntU63gL0vDUOQRF72W7IADF9B7llkRxG5aVPRnFyPFkt tD/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776968030; x=1777572830; 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=3+ensqe6zjCbzuMF9mpOUvwz9y3ZF8YoEKZ4oK6PKrM=; b=aD6KGg4ewIHmw6FWU8uthi4QFpZJd9fRgzuKF47k/MiNE0cyhsekXSewnazgyWeJMx uILRnVOa6y6+ZatkVYzhU5/rfh/Edin5C9jBXpM45cyK7N6JdvSajZ/cS1iaw1tHCVn6 fT4b05cWUOu1XJIu6y0+GWw6zCQ4yM+o102hXth7SUqcuLAgkxPmV6elPSLjYe/B06Jx bEtI9y26ROo5LGSUSB7DM9KuBdAwLDM+MtDbzTM9x1IdYPaNaz9cSfBXeyA6qtfu9pYn fW06sBs+N5BeZGC/p9fThqmnlh4VGCSTtwFqJCnQMnGGD4NFjB4xUkn4oNrfNnPadl70 Tm6w== X-Gm-Message-State: AOJu0YyNZxZta2pagPOkfe9Ng36L+nCl8QBQfXDAOBuNdbMxf7+i2yhc s/9BUenRwgztY0PbeT6UfFKYa4xerV8qHB5kQuEmV67Wv+yECker+r4xpAKAwaMjdgY= X-Gm-Gg: AeBDiet2vfVnjm/5Den8X93zTow7tGEarROrE3nveQbIrUYluGXNAmey4cyQRq0fM1k ThvlYabyBUaHf1Bhd/8aNq3PySQaraODHTDGl6vHZ9jnzhqDYvvirML5tKskiSjf+GE+5Q0QeVE uNqah7s2ZzEQnJjc12AQXHu86pSbiNg4fu3ziTDYrg8R63X3mHsOLtrYapQbw20Teac7KO2/xaM CVLLF4CBHWqhUklXhrgpWb3p+/ozfdHyzmD5/XR6WGl8E8JdChBrE/MsOPoCIX776/F51aTU88J c2mLLj7LDtOqehwV/zkHOqWppIpBwBvz+VrIN37P0lBBV6lcmRnzlKeOz89BnE4VZ6nDqhl2aB2 TELtwjgoZY16Ls7LAbm9H9c3YNtFP4VXMgdEGNpzG9RzBvKu9XZqRrI8zY3VCkLvNjFThvqiD/B //TJbfWOvKjYe2WAvgaAmhDcwUjmVUo+o/Et7xJflH1RFnSGzVTixOZPSNe0V6wg== X-Received: by 2002:a05:620a:1995:b0:8c6:a103:496b with SMTP id af79cd13be357-8e78bde95bbmr3483374285a.25.1776968030344; Thu, 23 Apr 2026 11:13:50 -0700 (PDT) Received: from plex ([71.181.43.54]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8e7d92ce037sm1608488085a.32.2026.04.23.11.13.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 11:13:49 -0700 (PDT) Date: Thu, 23 Apr 2026 18:13:48 +0000 From: Pasha Tatashin To: David Matlack Cc: linux-kernel@vger.kernel.org, Andrew Morton , Mike Rapoport , Pasha Tatashin , Pratyush Yadav , Samiullah Khawaja , kexec@lists.infradead.org Subject: Re: [PATCH 0/2] liveupdate: FLB refcounting improvements Message-ID: References: <20260423174032.3140399-1-dmatlack@google.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20260423174032.3140399-1-dmatlack@google.com> Please include kexec@lists.infradead.org so the patches are tested by Sashiko, and added to patchwork that we are using to maintaine live update work. Pasha On 04-23 17:40, David Matlack wrote: > This series can be found on GitHub: > > https://github.com/dmatlack/linux/tree/liveupdate/flb/refcount/v1 > > This series has 2 patches to improve how FLB refcounting works in > preparation for using FLB in the PCI core. The first patch converts the > existing refcounting to use refcount_t, and the second patch allows > users of the incoming FLB to hold references to the FLB to avoid it > getting freed. > > Users of the outgoing FLB don't need to take an extra reference yet > since it's always done in the context of a preserve/unpreserve file > callback, which are already synchronized with outgoing FLB creation > and destruction. > > This series has been tested against the existing Live Update selftests > (liveupdate, luo_kexec_simple, and luo_multi_session) on an Intel EMR > host. > > > David Matlack (2): > liveupdate: Use refcount_t for FLB reference counts > liveupdate: Reference count incoming FLB data > > include/linux/liveupdate.h | 9 ++++++- > kernel/liveupdate/luo_flb.c | 52 ++++++++++++++++++------------------- > lib/tests/liveupdate.c | 3 +++ > 3 files changed, 37 insertions(+), 27 deletions(-) > > > base-commit: 2a4c0c11c0193889446cdb6f1540cc2b9aff97dd > -- > 2.54.0.rc2.544.gc7ae2d5bb8-goog >