[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1399716199-26776-1-git-send-email-manfred@colorfullife.com>
Date: Sat, 10 May 2014 12:03:13 +0200
From: Manfred Spraul <manfred@...orfullife.com>
To: Davidlohr Bueso <davidlohr.bueso@...com>,
Michael Kerrisk <mtk.manpages@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>, 1vier1@....de,
Manfred Spraul <manfred@...orfullife.com>
Subject: [PATCH 0/6] ipc/sem.c: Fix semctl(,,{GETNCNT,GETZCNT})
Hi all,
According to the man page of semop(), semzcnt or semncnt are increased
exactly for the operation that couldn't proceed.
The Linux implementation always tried to be clever and to increase the counters
for all operations that might be the reason why a task sleeps.
The following patches fix that and make the code conform to the
documentation.
The series got fairly long, because I also noticed that semzcnt was calculated
incorrectly.
What do you think?
I ran a few test cases, and the semncnt and semzcnt counts now match
the expectation.
Is anyone aware of an application that uses GETNCNT or GETZCNT?
--
Manfred
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists