afs: do not set task state after schedule_timeout()
Subsystems (2)
PATCH 1/1 afs: do not set task state after schedule_timeout()
schedule_timeout() sets tast state to TASK_RUNNING, so there's no need to set it explicitly.
Signed-off-by Kulikov Vasiliy <[email protected]>
--- fs/afs/vlocation.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
fs/afs/vlocation.c +0 -1
@@ -130,7 +130,6 @@ static int afs_vlocation_access_vl_by_id(struct afs_vlocation *vl,/* second+ BUSY - sleep a little bit */ set_current_state (TASK_UNINTERRUPTIBLE );schedule_timeout (1 ); -__set_current_state (TASK_RUNNING ); }continue ; }
Signature · 1 line
1.7.0.4
Quoted 4 lines · Kulikov Vasiliy
schedule_timeout()sets tast state toTASK_RUNNING, so there's no need to set it explicitly.Signed-off-by Kulikov Vasiliy <[email protected]>
Acked-by David Howells <[email protected]>