]> rtime.felk.cvut.cz Git - linux-imx.git/commit
SUNRPC: remove BUG_ON from rpc_call_sync
authorWeston Andros Adamson <dros@netapp.com>
Thu, 1 Nov 2012 20:04:40 +0000 (16:04 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 4 Nov 2012 19:43:43 +0000 (14:43 -0500)
commit50d2bdb19734f9e9f21e63881a9b6c8db4cc0eb7
treea4d8c39731654e5791a587e471193ca73f664720
parent0a0c2a57bc9a47ae876077fdc4678eca33c26ae4
SUNRPC: remove BUG_ON from rpc_call_sync

Use WARN_ON_ONCE instead of calling BUG_ON and return -EINVAL when
RPC_TASK_ASYNC flag is passed to rpc_call_sync.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c