sunrpc: clarify comments on rpc_make_runnable
authorJeff Layton <jlayton@redhat.com>
Mon, 23 Jul 2012 19:51:55 +0000 (15:51 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Mar 2014 23:10:07 +0000 (16:10 -0700)
commite8d5ce17375e2ece50659f287ad1a3daf2335d7e
tree60dd6aa214387202d8c1308c4099d3d494c34516
parentb7d2a5e8cfe2dde13c9d05e1d220c2fc66da3164
sunrpc: clarify comments on rpc_make_runnable

commit 506026c3ec270e18402f0c9d33fee37482c23861 upstream.

rpc_make_runnable is not generally called with the queue lock held, unless
it's waking up a task that has been sitting on a waitqueue. This is safe
when the task has not entered the FSM yet, but the comments don't really
spell this out.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Weng Meiling <wengmeiling.weng@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/sched.c