Эх сурвалжийг харах

SUNRPC: remove BUG_ON from call_bc_transmit

Replace BUG_ON() with WARN_ON_ONCE().

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Weston Andros Adamson 13 жил өмнө
parent
commit
1facf4c4a4

+ 1 - 1
net/sunrpc/clnt.c

@@ -1794,7 +1794,7 @@ call_bc_transmit(struct rpc_task *task)
 		 * We were unable to reply and will have to drop the
 		 * We were unable to reply and will have to drop the
 		 * request.  The server should reconnect and retransmit.
 		 * request.  The server should reconnect and retransmit.
 		 */
 		 */
-		BUG_ON(task->tk_status == -EAGAIN);
+		WARN_ON_ONCE(task->tk_status == -EAGAIN);
 		printk(KERN_NOTICE "RPC: Could not send backchannel reply "
 		printk(KERN_NOTICE "RPC: Could not send backchannel reply "
 			"error: %d\n", task->tk_status);
 			"error: %d\n", task->tk_status);
 		break;
 		break;