From: Mike Marciniszyn Date: Thu, 12 May 2016 17:23:28 +0000 (-0700) Subject: IB/rdmavt: Increase CQ callback thread priority X-Git-Tag: v4.7~232^2~2^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cdbff5042d69bbe3f9840bea03863c93f93c88fa;p=platform%2Fkernel%2Flinux-amlogic.git IB/rdmavt: Increase CQ callback thread priority The priority of the send engines is higher than the CQ completion thread potentially causing completions to be starved for very fast interfaces. Change the CQ kthread to match the send engine threads to minimize this delay for ULP completion processing. Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/sw/rdmavt/cq.c b/drivers/infiniband/sw/rdmavt/cq.c index b1ffc8b..6ca6fa8 100644 --- a/drivers/infiniband/sw/rdmavt/cq.c +++ b/drivers/infiniband/sw/rdmavt/cq.c @@ -525,6 +525,7 @@ int rvt_driver_cq_init(struct rvt_dev_info *rdi) return PTR_ERR(task); } + set_user_nice(task, MIN_NICE); cpu = cpumask_first(cpumask_of_node(rdi->dparms.node)); kthread_bind(task, cpu); wake_up_process(task);