git: revoke(2): Use unix socket externalize code to handle revoke.

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Fri Sep 25 19:15:16 PDT 2015


commit f635d1746140d0f4915af3adb8314f4759377d3b
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu Sep 24 21:50:45 2015 +0800

    revoke(2): Use unix socket externalize code to handle revoke.
    
    Use revoke token in shared mode in unix socket code and in exclusive
    mode in fdrevoke(); mainly to make sure that all fps externalized and
    marked FREVOKED will be picked up by later allproc_scan() called by
    fdrevoke().
    
    This one greatly simplies the code on unix socket side.  The original
    unix socket revoke handling was also kinda broken: it tried to hold
    socket reception buffer token w/ all filedesc spin lock being held.
    
    Go-Ahead-by: dillon@

Summary of changes:
 sys/kern/kern_descrip.c |  19 ++++----
 sys/kern/uipc_usrreq.c  | 127 +++---------------------------------------------
 sys/sys/thread.h        |   1 +
 sys/sys/un.h            |   1 -
 4 files changed, 16 insertions(+), 132 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f635d1746140d0f4915af3adb8314f4759377d3b


-- 
DragonFly BSD source repository


More information about the Commits mailing list