]> 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>
Thu, 3 Nov 2011 05:38:13 +0000 (16:38 +1100)
commit041f5ef81069a90b3a940759cf43e24549ca8ec3
tree81d066af4fa62226d8cc5bd8c8b24060f695146f
parent2c1f502002a2333fd861bf9bfc41051517e2cef5
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