[openib-general] [PATCH applied] sdp: fix aio completion on cancel

Michael S. Tsirkin mst at mellanox.co.il
Thu Dec 1 05:04:29 PST 2005


SDP AIO : Turn a warning message on completed iocb cancel to debug.
SDP AIO : Put the proper AIO req on cancellation.

Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

Index: linux-2.6.14/drivers/infiniband/ulp/sdp/sdp_send.c
===================================================================
--- linux-2.6.14/drivers/infiniband/ulp/sdp/sdp_send.c	(revision 4198)
+++ linux-2.6.14/drivers/infiniband/ulp/sdp/sdp_send.c	(working copy)
@@ -1738,7 +1742,7 @@
 				/*
 				 * completion reference
 				 */
-				aio_put_req(req);
+				aio_put_req(iocb->req);
 
 				result = 0;
 			}
@@ -1797,9 +1801,8 @@
 	 * no IOCB found. The cancel is probably in a race with a completion.
 	 * Assume the IOCB will be completed, return appropriate value.
 	 */
-	sdp_warn("Cancel write with no IOCB. <%d:%d:%08lx>",
-		 req->ki_users, req->ki_key, req->ki_flags);
-
+	sdp_dbg_warn(conn, "Cancel write with no IOCB. <%d:%d:%08lx>",
+		     req->ki_users, req->ki_key, req->ki_flags);
 	result = -EAGAIN;
 
 unlock:

-- 
MST



More information about the general mailing list