]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc,shm: introduce shmctl_nolock
authorDavidlohr Bueso <davidlohr.bueso@hp.com>
Thu, 18 Jul 2013 23:56:56 +0000 (09:56 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 18 Jul 2013 23:56:56 +0000 (09:56 +1000)
commit3140b2ed6dfe5c9e5eca371c77ca85dca05321d4
treef8fc17ddc04ef10a10184217d92367995716211a
parenteef1e4f2e5c2be8008ba27ada134abd28745b038
ipc,shm: introduce shmctl_nolock

Similar to semctl and msgctl, when calling msgctl, the *_INFO and *_STAT
commands can be performed without acquiring the ipc object.

Add a shmctl_nolock() function and move the logic of *_INFO and *_STAT out
of msgctl().  Since we are just moving functionality, this change still
takes the lock and it will be properly lockless in the next patch.

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>
ipc/shm.c