]> git.baikalelectronics.ru Git - kernel.git/commit
devtmpfsd: fix task state handling
authorKautuk Consul <consul.kautuk@gmail.com>
Tue, 15 Nov 2011 22:52:34 +0000 (14:52 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 16 Nov 2011 00:07:39 +0000 (16:07 -0800)
commit42224b6f50ce83d2c36ae37df5b3a3ddfd5a4987
tree78d757c6cad66bb9daf0c3136d5e92a15edb8432
parent6c969a6a1f3f6500fac7c47329e17d9dec7a8ab8
devtmpfsd: fix task state handling

- Set the state to TASK_INTERRUPTIBLE using __set_current_state()
  instead of set_current_state() as the spin_unlock is an implicit memory
  barrier.

- After return from schedule(), there is no need to set the current
  state to TASK_RUNNING - a call to schedule() always returns in
  TASK_RUNNING state.

Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/devtmpfs.c