]> git.karo-electronics.de Git - linux-beck.git/commit
IB/hfi1: Fix ordering of trace for accuracy
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Mon, 7 Mar 2016 19:35:24 +0000 (11:35 -0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Mar 2016 19:55:20 +0000 (15:55 -0400)
commit5326dfbf005ca8589d709209a81d145c5b87b23d
treefca281ed53eb5bedb4962f5fc15bd99bce4dd71d
parent1db78eeebee7cde877194ddc8691f192e6279609
IB/hfi1: Fix ordering of trace for accuracy

The postitioning of the sdma ibhdr trace was
causing an extra trace message when the tx send
returned -EBUSY.

Move the trace to just before the return
and handle negative return values to avoid
any trace.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/verbs.c