original_kernel/ipc
Pierre Peiffer 283bb7fada IPC: fix error case when idr-cache is empty in ipcget()
With the use of idr to store the ipc, the case where the idr cache is
empty, when idr_get_new is called (this may happen even if we call
idr_pre_get() before), is not well handled: it lets
semget()/shmget()/msgget() return ENOSPC when this cache is empty, what 1.
does not reflect the facts and 2.  does not conform to the man(s).

This patch fixes this by retrying the whole process of allocation in this case.

Signed-off-by: Pierre Peiffer <pierre.peiffer@bull.net>
Cc: Nadia Derbey <Nadia.Derbey@bull.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-19 11:53:49 -07:00
..
Makefile
compat.c fix logic error in ipc compat semctl() 2007-07-06 10:23:43 -07:00
compat_mq.c
ipc_sysctl.c ipc namespace: remove config ipc ns fix 2007-10-17 08:42:57 -07:00
mqueue.c pid namespaces: changes to show virtual ids to user 2007-10-19 11:53:40 -07:00
msg.c IPC: fix error case when idr-cache is empty in ipcget() 2007-10-19 11:53:49 -07:00
msgutil.c
sem.c IPC: fix error case when idr-cache is empty in ipcget() 2007-10-19 11:53:49 -07:00
shm.c IPC: fix error case when idr-cache is empty in ipcget() 2007-10-19 11:53:49 -07:00
util.c IPC: fix error case when idr-cache is empty in ipcget() 2007-10-19 11:53:49 -07:00
util.h ipc: remove unneeded parameters 2007-10-19 11:53:48 -07:00