Bläddra i källkod

[infiniband] Use a one-shot process for CMRC shutdown

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 år sedan
förälder
incheckning
019d4c1c18
1 ändrade filer med 2 tillägg och 4 borttagningar
  1. 2
    4
      src/net/infiniband/ib_cmrc.c

+ 2
- 4
src/net/infiniband/ib_cmrc.c Visa fil

@@ -117,9 +117,6 @@ static void ib_cmrc_shutdown ( struct ib_cmrc_connection *cmrc ) {
117 117
 	ib_destroy_cq ( cmrc->ibdev, cmrc->cq );
118 118
 	ib_close ( cmrc->ibdev );
119 119
 
120
-	/* Remove process from run queue */
121
-	process_del ( &cmrc->shutdown );
122
-
123 120
 	/* Drop the remaining reference */
124 121
 	ref_put ( &cmrc->refcnt );
125 122
 }
@@ -363,7 +360,8 @@ static struct interface_descriptor ib_cmrc_xfer_desc =
363 360
 
364 361
 /** CMRC shutdown process descriptor */
365 362
 static struct process_descriptor ib_cmrc_shutdown_desc =
366
-	PROC_DESC ( struct ib_cmrc_connection, shutdown, ib_cmrc_shutdown );
363
+	PROC_DESC_ONCE ( struct ib_cmrc_connection, shutdown,
364
+			 ib_cmrc_shutdown );
367 365
 
368 366
 /**
369 367
  * Open CMRC connection

Laddar…
Avbryt
Spara