]> git.karo-electronics.de Git - karo-tx-linux.git/commit
devtmpfsd: fix task state handling
authorKautuk Consul <consul.kautuk@gmail.com>
Mon, 24 Oct 2011 14:53:39 +0000 (01:53 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:01:44 +0000 (20:01 +1100)
commit1bd581610611c5a95ec328e5c47fdf4f8bb99ec5
tree8af76e0bbf3a1c08047a181eaa52daa222813ecc
parent6d793b6a3036b1f94417e1f3290b8353eb6e4721
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>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/base/devtmpfs.c