mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 20:10:18 +03:00
Unplug before sending close() message, to avoid screwing up interfaces
which respond to close with a reopen() (e.g. iSCSI).
This commit is contained in:
@@ -29,16 +29,16 @@
|
||||
void job_done ( struct job_interface *job, int rc ) {
|
||||
struct job_interface *dest = job_get_dest ( job );
|
||||
|
||||
dest->op->done ( dest, rc );
|
||||
job_unplug ( job );
|
||||
dest->op->done ( dest, rc );
|
||||
job_put ( dest );
|
||||
}
|
||||
|
||||
void job_kill ( struct job_interface *job ) {
|
||||
struct job_interface *dest = job_get_dest ( job );
|
||||
|
||||
dest->op->kill ( dest );
|
||||
job_unplug ( job );
|
||||
dest->op->kill ( dest );
|
||||
job_put ( dest );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user