Skip to content

liveupdate: FLB refcounting improvements

David Matlack kexec lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2liveupdate: Use refcount_t for FLB reference countsinclude/linux/liveupdate.h kernel/liveupdate/luo_flb.c+12 -134 replies
2/2liveupdate: Reference count incoming FLB datainclude/linux/liveupdate.h kernel/liveupdate/luo_flb.c lib/tests/liveupdate.c+26 -152 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPasha TatashinSamiullah Khawaja
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] liveupdate: FLB refcounting improvements

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

Signature · 1 line
2.54.0.rc2.544.gc7ae2d5bb8-goog