]> 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, 1 Nov 2011 08:39:14 +0000 (19:39 +1100)
commitf99e1d1a630b6874ebc240d709c0ef36bca2cb51
treec89cf1df8f49645f00db1489e9e6b782409f90ec
parentf99804c93590680917e1e5a2890173e420dd1a44
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