IB/core: Don't use is_async in event files to infer events size
authorMatan Barak <matanb@mellanox.com>
Tue, 18 Apr 2017 09:03:41 +0000 (12:03 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Apr 2017 15:44:07 +0000 (11:44 -0400)
commite0fcc61113c17a2eae0dea7e9e67ac71849475b5
tree4bf9298d8620acdba7481efffff504e8c5e03aac
parentc52d8114d1a58f6fe4bfb9af39d262dd8f21e50e
IB/core: Don't use is_async in event files to infer events size

Previously, we inferred the events size in ib_uverbs_event_read by
using the is_async flag. Instead of that, we pass the event size
directly.

Fixes: 1e7710f3f656 ('IB/core: Change completion channel to use the reworked objects schema')
Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_main.c