[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1280132829-8224-1-git-send-email-segooon@gmail.com>
Date: Mon, 26 Jul 2010 12:27:09 +0400
From: Kulikov Vasiliy <segooon@...il.com>
To: kernel-janitors@...r.kernel.org
Cc: David Howells <dhowells@...hat.com>, Tejun Heo <tj@...nel.org>,
linux-afs@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH] 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 <segooon@...il.com>
---
fs/afs/vlocation.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/fs/afs/vlocation.c b/fs/afs/vlocation.c
index 9ac260d..21f270d 100644
--- a/fs/afs/vlocation.c
+++ b/fs/afs/vlocation.c
@@ -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;
}
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists