]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[fc] Use a one-shot process for Fibre Channel ELS requests
authorMichael Brown <mcb30@ipxe.org>
Fri, 24 Jun 2011 16:16:38 +0000 (17:16 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 28 Jun 2011 13:45:10 +0000 (14:45 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/fcels.c

index 656b4f6723df2dbbe7b3f72ce5cd326b6b72e924..2106cbd5b078468ab9358d5dce3a0bd6d77505c4 100644 (file)
@@ -253,9 +253,6 @@ static void fc_els_step ( struct fc_els *els ) {
        /* Sanity check */
        assert ( fc_els_is_request ( els ) );
 
-       /* Stop process */
-       process_del ( &els->process );
-
        /* Create exchange */
        if ( ( xchg_id = fc_xchg_originate ( &els->xchg, els->port,
                                             &els->peer_port_id,
@@ -278,7 +275,7 @@ static void fc_els_step ( struct fc_els *els ) {
 
 /** Fibre Channel ELS process descriptor */
 static struct process_descriptor fc_els_process_desc =
-       PROC_DESC ( struct fc_els, process, fc_els_step );
+       PROC_DESC_ONCE ( struct fc_els, process, fc_els_step );
 
 /**
  * Create ELS transaction