git: uipc: Use flag to indicate that the unpcb was detached/aborted.
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Mon Aug 24 20:05:33 PDT 2015
commit 5df2d9a03d586f11deb1542d0ae28192c22a027b
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Mon Aug 24 22:02:20 2015 +0800
uipc: Use flag to indicate that the unpcb was detached/aborted.
Since unpcb detach (so->so_pcb set to NULL) could be delayed by
extra references, we use a flag to indicate that the unpcb was
detached/aborted. And hold per-unpcb token in uipc_detach() and
uipc_abort(), since this flag is also checked in other uipc_userreq
methods, e.g. uipc_send().
This commit makes uipc_abort() reentrant.
Summary of changes:
sys/kern/uipc_usrreq.c | 18 +++++++++++++++---
sys/sys/unpcb.h | 4 ++++
2 files changed, 19 insertions(+), 3 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5df2d9a03d586f11deb1542d0ae28192c22a027b
--
DragonFly BSD source repository
More information about the Commits
mailing list