OpenAFS Master Repository branch, openafs-stable-1_8_x, updated. openafs-stable-1_8_7-148-g5cfee79

Gerrit Code Review gerrit@openafs.org
Thu, 3 Jun 2021 07:53:38 -0400


The following commit has been merged in the openafs-stable-1_8_x branch:
commit 5cfee79d9a12e67720906cc5a985f7c12064db41
Author: Andrew Deason <adeason@dson.org>
Date:   Sun Jul 21 17:02:34 2019 -0500

    afs: Actually free resources during warm shutdown
    
    Currently, the shutdown_*() code paths for several subsystems only
    free the memory for that subsystem for "cold" shutdowns, and not for
    "warm" shutdowns. This means the memory gets leaked during a "warm"
    shutdown, since we never free these resources anywhere else.
    Specifically, this happens in shutdown_bufferpackage, shutdown_AFS,
    and shutdown_osinet.
    
    To avoid these leaks for warm shutdowns, just move the
    afs_cold_shutdown check around a little, so we free the relevant items
    in either codepath.
    
    Reviewed-on: https://gerrit.openafs.org/13716
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
    (cherry picked from commit 2336164d1bf63980419d3a870f908f1f384fdfc0)
    
    Change-Id: I1d2360ea777b7a7488e599b6e707c98295d8fbdd
    Reviewed-on: https://gerrit.openafs.org/14615
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
    Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
    Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
    Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>

 src/afs/afs_buffer.c    |   23 +++++++-----
 src/afs/afs_cell.c      |    4 ++-
 src/afs/afs_init.c      |   93 ++++++++++++++++++++++++-----------------------
 src/afs/afs_osi_alloc.c |   29 ++++++++-------
 4 files changed, 80 insertions(+), 69 deletions(-)

-- 
OpenAFS Master Repository