summaryrefslogtreecommitdiffstats
path: root/src/net/infiniband
diff options
context:
space:
mode:
authorMichael Brown2011-06-24 18:21:52 +0200
committerMichael Brown2011-06-28 15:45:11 +0200
commit019d4c1c1895a672ced583b972b256cd978a6b9f (patch)
treed42d114c55c0d536214e68b117305da88f8a085f /src/net/infiniband
parent[fc] Use a one-shot process for Fibre Channel name server queries (diff)
downloadipxe-019d4c1c1895a672ced583b972b256cd978a6b9f.tar.gz
ipxe-019d4c1c1895a672ced583b972b256cd978a6b9f.tar.xz
ipxe-019d4c1c1895a672ced583b972b256cd978a6b9f.zip
[infiniband] Use a one-shot process for CMRC shutdown
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/infiniband')
-rw-r--r--src/net/infiniband/ib_cmrc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net/infiniband/ib_cmrc.c b/src/net/infiniband/ib_cmrc.c
index 972a60cf..369e2e90 100644
--- a/src/net/infiniband/ib_cmrc.c
+++ b/src/net/infiniband/ib_cmrc.c
@@ -117,9 +117,6 @@ static void ib_cmrc_shutdown ( struct ib_cmrc_connection *cmrc ) {
ib_destroy_cq ( cmrc->ibdev, cmrc->cq );
ib_close ( cmrc->ibdev );
- /* Remove process from run queue */
- process_del ( &cmrc->shutdown );
-
/* Drop the remaining reference */
ref_put ( &cmrc->refcnt );
}
@@ -363,7 +360,8 @@ static struct interface_descriptor ib_cmrc_xfer_desc =
/** CMRC shutdown process descriptor */
static struct process_descriptor ib_cmrc_shutdown_desc =
- PROC_DESC ( struct ib_cmrc_connection, shutdown, ib_cmrc_shutdown );
+ PROC_DESC_ONCE ( struct ib_cmrc_connection, shutdown,
+ ib_cmrc_shutdown );
/**
* Open CMRC connection