IB/core: postpone WR initialization during queue drain
authorMax Gurtovoy <maxg@mellanox.com>
Sun, 14 Jan 2018 15:07:48 +0000 (17:07 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 18 Jan 2018 19:49:20 +0000 (14:49 -0500)
commitaaebd377c0e9c75bc95217b924e4456a392c65ed
tree419a455a9238fddc8e2623ab0f5fb35006133b70
parentbb3ffb7ad48a21e98a5c64eb21103a74fd9f03f6
IB/core: postpone WR initialization during queue drain

No need to initialize completion and WR in case we fail
during QP modification.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/verbs.c