From owner-cvs-all@FreeBSD.ORG Fri Nov 17 20:43:02 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1131E16A403; Fri, 17 Nov 2006 20:43:02 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79D4B43D70; Fri, 17 Nov 2006 20:43:01 +0000 (GMT) (envelope-from jkim@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 kAHKh1d5050975; Fri, 17 Nov 2006 20:43:01 GMT (envelope-from jkim@repoman.freebsd.org) Received: (from jkim@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAHKh1b2050974; Fri, 17 Nov 2006 20:43:01 GMT (envelope-from jkim) Message-Id: <200611172043.kAHKh1b2050974@repoman.freebsd.org> From: Jung-uk Kim Date: Fri, 17 Nov 2006 20:43:01 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern sysv_msg.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Nov 2006 20:43:02 -0000 jkim 2006-11-17 20:43:01 UTC FreeBSD src repository Modified files: sys/kern sysv_msg.c Log: Fix msgsnd(3)/msgrcv(3) deadlock under heavy resource pressure by timing out msgsnd and rechecking resources. This problem was found while I was running Linux Test Project test suite (test cases: msgctl08, msgctl09). Change `msgwait' to `msgsnd' and `msgrcv' to distinguish its sleeping conditions. Few cosmetic changes to debugging messages. Revision Changes Path 1.65 +9 -5 src/sys/kern/sysv_msg.c