Browse Source

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
019d4c1c18
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      src/net/infiniband/ib_cmrc.c

+ 2
- 4
src/net/infiniband/ib_cmrc.c View File

117
 	ib_destroy_cq ( cmrc->ibdev, cmrc->cq );
117
 	ib_destroy_cq ( cmrc->ibdev, cmrc->cq );
118
 	ib_close ( cmrc->ibdev );
118
 	ib_close ( cmrc->ibdev );
119
 
119
 
120
-	/* Remove process from run queue */
121
-	process_del ( &cmrc->shutdown );
122
-
123
 	/* Drop the remaining reference */
120
 	/* Drop the remaining reference */
124
 	ref_put ( &cmrc->refcnt );
121
 	ref_put ( &cmrc->refcnt );
125
 }
122
 }
363
 
360
 
364
 /** CMRC shutdown process descriptor */
361
 /** CMRC shutdown process descriptor */
365
 static struct process_descriptor ib_cmrc_shutdown_desc =
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
  * Open CMRC connection
367
  * Open CMRC connection

Loading…
Cancel
Save