From owner-p4-projects@FreeBSD.ORG Sat Oct 7 14:56:55 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0BCE116A415; Sat, 7 Oct 2006 14:56:55 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB61F16A40F for ; Sat, 7 Oct 2006 14:56:54 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9E2B43D46 for ; Sat, 7 Oct 2006 14:56:54 +0000 (GMT) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k97EuskK017417 for ; Sat, 7 Oct 2006 14:56:54 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k97Eusew017411 for perforce@freebsd.org; Sat, 7 Oct 2006 14:56:54 GMT (envelope-from rdivacky@FreeBSD.org) Date: Sat, 7 Oct 2006 14:56:54 GMT Message-Id: <200610071456.k97Eusew017411@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rdivacky@FreeBSD.org using -f From: Roman Divacky To: Perforce Change Reviews Cc: Subject: PERFORCE change 107418 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Oct 2006 14:56:55 -0000 http://perforce.freebsd.org/chv.cgi?CH=107418 Change 107418 by rdivacky@rdivacky_witten on 2006/10/07 14:56:48 Fix SLIST handling (still untested). Affected files ... .. //depot/projects/linuxolator/src/sys/kern/sysv_sem.c#4 edit Differences ... ==== //depot/projects/linuxolator/src/sys/kern/sysv_sem.c#4 (text+ko) ==== @@ -227,6 +227,7 @@ } for (i = 0; i < seminfo.semmni; i++) mtx_init(&sema_mtx[i], "semid", NULL, MTX_DEF); + SLIST_INIT(&semu_list); mtx_init(&sem_mtx, "sem", NULL, MTX_DEF); semexit_tag = EVENTHANDLER_REGISTER(process_exit, semexit_myhook, NULL, EVENTHANDLER_PRI_ANY); @@ -331,6 +332,8 @@ suptr = malloc(seminfo.semusz, M_SEM, M_WAITOK); refcount_init(&suptr->refcount, 1); + SLIST_INSERT_HEAD(&semu_list, suptr, un_next); + PROC_LOCK(td->td_proc); td->td_proc->p_semundo = suptr; PROC_UNLOCK(td->td_proc);