[PATCH 0/6] ipc/sem.c: Fix semctl(,,{GETNCNT,GETZCNT})

Manfred Spraul
2014-05-18T07:58:51Z

Hi Andrew,

I've applied the changes recommended by Michael and Davidlohr - and I don't
have any open points on my list, either.

Therefore: Could you add the series to -mm and move it towards mainline?

Background:

SUSv4 and the man page of semop() clearly define how semncnt or semzcnt must
be updated: Exactly for the single sop that cannot 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 standard and
the documentation.

The series got fairly long, because I also noticed that semzcnt was calculated
incorrectly.

--
Manfred