]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
devtmpfsd: fix task state handling
authorKautuk Consul <consul.kautuk@gmail.com>
Tue, 8 Nov 2011 00:19:57 +0000 (11:19 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 8 Nov 2011 03:15:48 +0000 (14:15 +1100)
commit72957414b142b3c30bec9bd8d34014eb6d84e372
tree01c7379d57a1f1a10589262dcff72b41ee953ee3
parented5276c84f8ab2e0264c15f528ed0597867e69be
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