staging/rdma/hfi1: Add a schedule in send thread
authorDean Luick <dean.luick@intel.com>
Mon, 26 Oct 2015 14:28:35 +0000 (10:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 08:19:22 +0000 (17:19 +0900)
commitb421922e66db43ffccb28a7df7c44263a917ba63
treecce4e8cb44446bb9a23100e53a2caf69dbde66f7
parentc91b4a126a801e93c3b569775926699dc291b6c1
staging/rdma/hfi1: Add a schedule in send thread

When under heavy load, the send handler can run too long without allowing other
tasks to run.  Add a conditional resched to break this up.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/chip.c
drivers/staging/rdma/hfi1/chip.h
drivers/staging/rdma/hfi1/ruc.c
drivers/staging/rdma/hfi1/verbs.h