]> git.baikalelectronics.ru Git - kernel.git/commit
iser-target: Introduce isert_poll_budget
authorSagi Grimberg <sagig@mellanox.com>
Tue, 2 Dec 2014 14:57:44 +0000 (16:57 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 13 Dec 2014 07:32:31 +0000 (23:32 -0800)
commit5f8dd039a8b3a8e8082444ee81321200bf38b5c2
treeb82fdaddb210cf6c69c9411014db8a705038dfe0
parente1c7719009e49c0c0464848798322e398246109d
iser-target: Introduce isert_poll_budget

In case the CQ is packed with completions, we can't just
hog the CPU forever. Poll until a sufficient budget (currently
hard-coded to 64k completions) and if budget is exhausted, bailout
and give a chance to other threads.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c