diff options
author | John L. Hammond <john.hammond@intel.com> | 2016-03-03 01:01:52 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-03 02:23:49 +0300 |
commit | 933d36ba1485abe4f3d7ae23cecf87a2b71020d1 (patch) | |
tree | 9f3968655cbff969249c1993c9f7348582ae0b43 /drivers/bcma | |
parent | 661489adb6bade7bb452e6513daf52e607d1094e (diff) | |
download | linux-933d36ba1485abe4f3d7ae23cecf87a2b71020d1.tar.xz |
staging: lustre: set task state before scheduling in lnet_sock_accept
In the original code change when libcfs_sock_accept() was made
into lnet_sock_accept() a call to set_current_state(TASK_INTERRUPTIBLE)
got dropped which was restored. For upstream this is an
optimization of calling init_waitqueue_entry() only if
accept() return -EAGAIN. Also we can remove setting the
task to TASK_RUNNING that is not needed.
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6407
Reviewed-on: http://review.whamcloud.com/14265
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Amir Shehata <amir.shehata@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/bcma')
0 files changed, 0 insertions, 0 deletions