]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ipc,shm: shorten critical region in shmctl_down
authorDavidlohr Bueso <davidlohr.bueso@hp.com>
Wed, 11 Sep 2013 21:26:16 +0000 (14:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:59:39 +0000 (15:59 -0700)
commit79ccf0f8c8e04e8b9eda6645ba0f63b0915a3075
tree7178c7dbb1edd12689359f49da36d4e04de93cf8
parent8b8d52ac382b17a19906b930cd69e2edb0aca8ba
ipc,shm: shorten critical region in shmctl_down

Instead of holding the ipc lock for the entire function, use the
ipcctl_pre_down_nolock and only acquire the lock for specific commands:
RMID and SET.

Signed-off-by: Davidlohr Bueso <davidlohr.bueso@hp.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/shm.c