path: root/ipc/ipcns_notifier.c
diff options
authorTejun Heo <tj@kernel.org>2013-02-27 17:04:53 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-27 19:10:19 -0800
commit54924ea33f3ba702243ba4ab068d7d2852db8098 (patch)
tree0a5adb06fe63726325ef9197bb4d49f2567d5231 /ipc/ipcns_notifier.c
parent6b207ba3ebe7428a18878c58130e13a3e3bccef9 (diff)
ipc: convert to idr_alloc()
Convert to the much saner new idr interface. The new interface doesn't directly translate to the way idr_pre_get() was used around ipc_addid() as preloading disables preemption. From my cursory reading, it seems like we should be able to do all allocation from ipc_addid(), so I moved it there. Can you please check whether this would be okay? If this is wrong and ipc_addid() should be allowed to be called from non-sleepable context, I'd suggest allocating id itself in the outer functions and later install the pointer using idr_replace(). Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Sedat Dilek <sedat.dilek@gmail.com> Tested-by: Sedat Dilek <sedat.dilek@gmail.com> Cc: Stanislav Kinsbursky <skinsbursky@parallels.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: James Morris <jmorris@namei.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/ipcns_notifier.c')
0 files changed, 0 insertions, 0 deletions

Privacy Policy