]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Make ib_dealloc_pd return void
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Wed, 5 Aug 2015 20:34:31 +0000 (14:34 -0600)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 22:12:39 +0000 (18:12 -0400)
commit8f32bd01f7a2e2e62985c1699762858598209f26
treee2db1758b801c9953686bcf6933f681a643ce7aa
parent20525e35de638ccd7ddc2479fb2c4bb44f7578b0
IB/core: Make ib_dealloc_pd return void

The majority of callers never check the return value, and even if they
did, they can't do anything about a failure.

All possible failure cases represent a bug in the caller, so just
WARN_ON inside the function instead.

This fixes a few random errors:
 net/rd/iw.c infinite loops while it fails. (racing with EBUSY?)

This also lays the ground work to get rid of error return from the
drivers. Most drivers do not error, the few that do are broken since
it cannot be handled.

Since uverbs can legitimately make use of EBUSY, open code the
check.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/verbs.c
drivers/infiniband/ulp/ipoib/ipoib_verbs.c
drivers/infiniband/ulp/iser/iser_verbs.c
include/rdma/ib_verbs.h
net/rds/iw.c
net/sunrpc/xprtrdma/verbs.c