diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2015-02-17 13:47:55 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-17 14:34:55 -0800 |
commit | 52644c9ab3faefbfbf07a19c24c4e74e33cfd796 (patch) | |
tree | 655044797aac54d771597565ca424acad1e2dec5 /ipc | |
parent | a9c5bcfa43420365535ef42c1ff1e83aa056f25e (diff) | |
download | linux-rpi3-52644c9ab3faefbfbf07a19c24c4e74e33cfd796.tar.gz linux-rpi3-52644c9ab3faefbfbf07a19c24c4e74e33cfd796.tar.bz2 linux-rpi3-52644c9ab3faefbfbf07a19c24c4e74e33cfd796.zip |
ipc,sem: use current->state helpers
Call __set_current_state() instead of assigning the new state directly.
These interfaces also aid CONFIG_DEBUG_ATOMIC_SLEEP environments, keeping
track of who changed the state.
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/sem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/sem.c b/ipc/sem.c index 6115146563f9..92842113c6a9 100644 --- a/ipc/sem.c +++ b/ipc/sem.c @@ -1941,7 +1941,7 @@ SYSCALL_DEFINE4(semtimedop, int, semid, struct sembuf __user *, tsops, queue.sleeper = current; sleep_again: - current->state = TASK_INTERRUPTIBLE; + __set_current_state(TASK_INTERRUPTIBLE); sem_unlock(sma, locknum); rcu_read_unlock(); |