summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPierre Peiffer <Pierre.Peiffer@bull.net>2007-10-19 08:40:57 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-19 20:53:49 +0200
commit283bb7fada7e33a759d8fc9bd7a44532e4ad420e (patch)
treec6704baf10edd10ca64310f2d168969434bb7dcf /fs
parentvirtualization of sysv msg queues is incomplete (diff)
downloadlinux-283bb7fada7e33a759d8fc9bd7a44532e4ad420e.tar.xz
linux-283bb7fada7e33a759d8fc9bd7a44532e4ad420e.zip
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions