commit | 4241c1a304078569f544d51eeaf8bc270b6e377a | [log] [tgz] |
---|---|---|
author | Manfred Spraul <[email protected]> | Tue Aug 21 22:01:34 2018 -0700 |
committer | Linus Torvalds <[email protected]> | Wed Aug 22 10:52:51 2018 -0700 |
tree | 9468a64167df7d9919bfab0f3206baa937ab7235 | |
parent | 39cfffd774a2e8818250360a3e028b5eac9d5392 [diff] |
ipc: rename ipcctl_pre_down_nolock() Both the comment and the name of ipcctl_pre_down_nolock() are misleading: The function must be called while holdling the rw semaphore. Therefore the patch renames the function to ipcctl_obtain_check(): This name matches the other names used in util.c: - "obtain" function look up a pointer in the idr, without acquiring the object lock. - The caller is responsible for locking. - _check means that the sequence number is checked. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Manfred Spraul <[email protected]> Reviewed-by: Davidlohr Bueso <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Kees Cook <[email protected]> Cc: Michael Kerrisk <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>