Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xprtrdma: Remove pr_err() call sites from completion handlers

Clean up: rely on the trace points instead.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>

authored by

Chuck Lever and committed by
Anna Schumaker
5f2311f5 86c4ccd9

+4 -28
+4 -19
net/sunrpc/xprtrdma/frwr_ops.c
··· 297 297 (ia->ri_max_segs - 2) * ia->ri_max_frwr_depth); 298 298 } 299 299 300 - static void 301 - __frwr_sendcompletion_flush(struct ib_wc *wc, const char *wr) 302 - { 303 - if (wc->status != IB_WC_WR_FLUSH_ERR) 304 - pr_err("rpcrdma: %s: %s (%u/0x%x)\n", 305 - wr, ib_wc_status_msg(wc->status), 306 - wc->status, wc->vendor_err); 307 - } 308 - 309 300 /** 310 301 * frwr_wc_fastreg - Invoked by RDMA provider for a flushed FastReg WC 311 302 * @cq: completion queue (ignored) ··· 311 320 container_of(cqe, struct rpcrdma_frwr, fr_cqe); 312 321 313 322 /* WARNING: Only wr_cqe and status are reliable at this point */ 314 - if (wc->status != IB_WC_SUCCESS) { 323 + if (wc->status != IB_WC_SUCCESS) 315 324 frwr->fr_state = FRWR_FLUSHED_FR; 316 - __frwr_sendcompletion_flush(wc, "fastreg"); 317 - } 318 325 trace_xprtrdma_wc_fastreg(wc, frwr); 319 326 } 320 327 ··· 330 341 fr_cqe); 331 342 332 343 /* WARNING: Only wr_cqe and status are reliable at this point */ 333 - if (wc->status != IB_WC_SUCCESS) { 344 + if (wc->status != IB_WC_SUCCESS) 334 345 frwr->fr_state = FRWR_FLUSHED_LI; 335 - __frwr_sendcompletion_flush(wc, "localinv"); 336 - } 337 346 trace_xprtrdma_wc_li(wc, frwr); 338 347 } 339 348 ··· 350 363 fr_cqe); 351 364 352 365 /* WARNING: Only wr_cqe and status are reliable at this point */ 353 - if (wc->status != IB_WC_SUCCESS) { 366 + if (wc->status != IB_WC_SUCCESS) 354 367 frwr->fr_state = FRWR_FLUSHED_LI; 355 - __frwr_sendcompletion_flush(wc, "localinv"); 356 - } 357 - complete(&frwr->fr_linv_done); 358 368 trace_xprtrdma_wc_li_wake(wc, frwr); 369 + complete(&frwr->fr_linv_done); 359 370 } 360 371 361 372 /**
-9
net/sunrpc/xprtrdma/verbs.c
··· 135 135 136 136 /* WARNING: Only wr_cqe and status are reliable at this point */ 137 137 trace_xprtrdma_wc_send(sc, wc); 138 - if (wc->status != IB_WC_SUCCESS && wc->status != IB_WC_WR_FLUSH_ERR) 139 - pr_err("rpcrdma: Send: %s (%u/0x%x)\n", 140 - ib_wc_status_msg(wc->status), 141 - wc->status, wc->vendor_err); 142 - 143 138 rpcrdma_sendctx_put_locked(sc); 144 139 } 145 140 ··· 172 177 return; 173 178 174 179 out_flushed: 175 - if (wc->status != IB_WC_WR_FLUSH_ERR) 176 - pr_err("rpcrdma: Recv: %s (%u/0x%x)\n", 177 - ib_wc_status_msg(wc->status), 178 - wc->status, wc->vendor_err); 179 180 rpcrdma_recv_buffer_put(rep); 180 181 } 181 182