Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 19 Nov 2002 06:21:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 19 Nov 2002 06:21:41 -0500 Received: from leon-2.mat.uni.torun.pl ([158.75.2.64]:38625 "EHLO leon-2.mat.uni.torun.pl") by vger.kernel.org with ESMTP id ; Tue, 19 Nov 2002 06:21:40 -0500 Date: Tue, 19 Nov 2002 12:28:18 +0100 (CET) From: Krzysztof Benedyczak X-X-Sender: golbi@Jan To: Peter Waechtler cc: Michal Wronski , , "Gustafson, Geoffrey R" , "Abbas, Mohamed" Subject: Re: [PATCH] unified SysV and POSIX mqueues - complete rewrite In-Reply-To: <3DD2D154.AB45F0CD@mac.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1107 Lines: 32 Hello, After some looking into your code, I think there is a bug. Please correct me if I'm wrong. The problem occur when awake processes which wait for message (or free space). I think that your code will wake them up in random order. POSIX says: > If more than one thread is waiting to send when space becomes > available in the message queue and the Priority Scheduling option is > supported, then the thread of the highest priority that has been > waiting the longest shall be unblocked to send its message I've written a test and it shows that my suspects are rather true? BTW: I've had some problems with your patch when linking kernel - in your main file were used static functions from msg.c?? Maybe my patch (taken from lkml - post date: XI 10) was incomplete? If there is more recent version could you inform me? Thanks. Regards K. Benedzyczak - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/