Kaynağa Gözat

[fc] Use a one-shot process for Fibre Channel name server queries

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 yıl önce
ebeveyn
işleme
ce3bc9e88b
1 değiştirilmiş dosya ile 1 ekleme ve 4 silme
  1. 1
    4
      src/net/fcns.c

+ 1
- 4
src/net/fcns.c Dosyayı Görüntüle

@@ -161,9 +161,6 @@ static void fc_ns_query_step ( struct fc_ns_query *query ) {
161 161
 	int xchg_id;
162 162
 	int rc;
163 163
 
164
-	/* Stop process */
165
-	process_del ( &query->process );
166
-
167 164
 	/* Create exchange */
168 165
 	if ( ( xchg_id = fc_xchg_originate ( &query->xchg, query->port,
169 166
 					     &fc_gs_port_id,
@@ -208,7 +205,7 @@ static struct interface_descriptor fc_ns_query_xchg_desc =
208 205
 
209 206
 /** Name server process descriptor */
210 207
 static struct process_descriptor fc_ns_query_process_desc =
211
-	PROC_DESC ( struct fc_ns_query, process, fc_ns_query_step );
208
+	PROC_DESC_ONCE ( struct fc_ns_query, process, fc_ns_query_step );
212 209
 
213 210
 /**
214 211
  * Issue Fibre Channel name server query

Loading…
İptal
Kaydet