mirror of https://github.com/ipxe/ipxe.git
[infiniband] Use a one-shot process for CMRC shutdown
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/5/head
parent
ce3bc9e88b
commit
019d4c1c18
|
|
@ -117,9 +117,6 @@ static void ib_cmrc_shutdown ( struct ib_cmrc_connection *cmrc ) {
|
||||||
ib_destroy_cq ( cmrc->ibdev, cmrc->cq );
|
ib_destroy_cq ( cmrc->ibdev, cmrc->cq );
|
||||||
ib_close ( cmrc->ibdev );
|
ib_close ( cmrc->ibdev );
|
||||||
|
|
||||||
/* Remove process from run queue */
|
|
||||||
process_del ( &cmrc->shutdown );
|
|
||||||
|
|
||||||
/* Drop the remaining reference */
|
/* Drop the remaining reference */
|
||||||
ref_put ( &cmrc->refcnt );
|
ref_put ( &cmrc->refcnt );
|
||||||
}
|
}
|
||||||
|
|
@ -363,7 +360,8 @@ static struct interface_descriptor ib_cmrc_xfer_desc =
|
||||||
|
|
||||||
/** CMRC shutdown process descriptor */
|
/** CMRC shutdown process descriptor */
|
||||||
static struct process_descriptor ib_cmrc_shutdown_desc =
|
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
|
* Open CMRC connection
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue