RDMA/uverbs: Refactor command header processing
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 21 Feb 2018 16:12:37 +0000 (18:12 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 23 Feb 2018 03:29:37 +0000 (22:29 -0500)
commit77833b8a48084cb17e4bd631360b0093dd245a31
tree1fe07874095ebe82efa05855bb262ea0fde76425
parentf2630ce2fb93eab5f50aa00dac7ae24a3b4ce17f
RDMA/uverbs: Refactor command header processing

Move all command header processing into separate function
and perform those checks before acquiring SRCU read lock.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_main.c