]> git.karo-electronics.de Git - linux-beck.git/commitdiff
IB/rdmavt: Increase CQ callback thread priority
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Thu, 12 May 2016 17:23:28 +0000 (10:23 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:39:17 +0000 (19:39 -0400)
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 <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rdmavt/cq.c

index b1ffc8b4a6c0a5a7bc0da453643e9f5114af553e..6ca6fa80dd6e7883c071003de9a10853dc593f10 100644 (file)
@@ -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);