The following commit has been merged in the master branch:
commit 9563807791e2402f7a214a90e96cf6ed8ea5abfb
Author: Marcio Barbosa <[email protected]>
Date:   Thu Nov 7 00:10:12 2019 -0300

    afs: afs_pag_wait() makes process unkillable
    
    To enforce a maximum average rate of one PAG allocation per second,
    afs_pag_wait(), called by afs_setpag*(), sleeps until the difference
    between the current time and pag_epoch gets greater than pagCounter.
    Unfortunately, this function ignores the code returned by afs_osi_Wait().
    As a result, it is not possible to kill the process that requested the
    new pag while afs_pag_wait() is sleeping.
    
    To fix this problem, do not ignore the code returned by afs_osi_Wait().
    
    Change-Id: I6be11a569edcafa6ecdf716e5315fc75f5a128e8
    Reviewed-on: https://gerrit.openafs.org/12260
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Cheyenne Wills <[email protected]>
    Reviewed-by: Benjamin Kaduk <[email protected]>

 src/afs/afs_osi_pag.c |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

-- 
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to