projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4ded8d
)
SUNRPC: remove BUG_ON from bc_send
author
Weston Andros Adamson
<dros@netapp.com>
Tue, 23 Oct 2012 14:43:35 +0000
(10:43 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sun, 4 Nov 2012 19:43:41 +0000
(14:43 -0500)
Replace BUG_ON() with WARN_ON_ONCE(). The error condition is a simple
ref counting sanity check and the following code will not free anything
until final put.
Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/bc_svc.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sunrpc/bc_svc.c
b/net/sunrpc/bc_svc.c
index 0b2eb388cbda3c6d863557797ad786b992444931..15c7a8a1c24fd5c68b60b1903e4272eb6a293abd 100644
(file)
--- a/
net/sunrpc/bc_svc.c
+++ b/
net/sunrpc/bc_svc.c
@@
-53,7
+53,7
@@
int bc_send(struct rpc_rqst *req)
if (IS_ERR(task))
ret = PTR_ERR(task);
else {
-
BUG_ON
(atomic_read(&task->tk_count) != 1);
+
WARN_ON_ONCE
(atomic_read(&task->tk_count) != 1);
ret = task->tk_status;
rpc_put_task(task);
}