mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 04:28:12 +03:00
Gave asynchronous operations approximate POSIX signal semantics. This
will enable us to cascade async operations, which is necessary in order to properly support DNS. (For example, an HTTP request may have to redirect to a new location and will have to perform a new DNS lookup, so we can't just rely on doing the name lookup at the time of parsing the initial URL). Anything other than HTTP is probably broken right now; I'll fix the others up asap.
This commit is contained in:
@@ -591,7 +591,7 @@ struct iscsi_session {
|
||||
*/
|
||||
struct scsi_command *command;
|
||||
/** Asynchronous operation for the current iSCSI operation */
|
||||
struct async_operation aop;
|
||||
struct async async;
|
||||
/** Instant return code
|
||||
*
|
||||
* Set to a non-zero value if all requests should return
|
||||
@@ -637,8 +637,9 @@ struct iscsi_session {
|
||||
/** Maximum number of retries at connecting */
|
||||
#define ISCSI_MAX_RETRIES 2
|
||||
|
||||
extern struct async_operation * iscsi_issue ( struct iscsi_session *iscsi,
|
||||
struct scsi_command *command );
|
||||
extern int iscsi_issue ( struct iscsi_session *iscsi,
|
||||
struct scsi_command *command,
|
||||
struct async *parent );
|
||||
extern void iscsi_shutdown ( struct iscsi_session *iscsi );
|
||||
|
||||
/** An iSCSI device */
|
||||
|
||||
Reference in New Issue
Block a user