]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit5412352fcd8fba7f278ae8c9ba36296716f17ae8
tree5035bb5c0729cd93db2f7ef27d620e46eab958db
parente6a00f6684c9f348cd782922b4b277c68ab90b63
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