]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Return EAGAIN for any error in mlx4_ib_poll_one
authorYuval Shaia <yuval.shaia@oracle.com>
Wed, 27 Jul 2016 08:24:53 +0000 (01:24 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 22 Aug 2016 18:26:53 +0000 (14:26 -0400)
commit0cdfaae15c15eca6d5de772aae1ece8fb4bc2048
tree5035bb5c0729cd93db2f7ef27d620e46eab958db
parent5b90d141ba366dd9d6d64ef12dc394f7f605fad7
IB/mlx4: Return EAGAIN for any error in mlx4_ib_poll_one

Error code EAGAIN should be used when errors are temporary and next call
might succeeds.
When error code other than EAGAIN is returned, the caller (mlx4_ib_poll)
will assume all CQE in the same bunch are error too and will drop them all.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/cq.c