summaryrefslogtreecommitdiffstats
path: root/src/core/job.c
diff options
context:
space:
mode:
authorMichael Brown2007-07-10 07:25:30 +0200
committerMichael Brown2007-07-10 07:25:30 +0200
commit4075f7596bd7b879706516fd84f4acbf19a7d2c5 (patch)
tree9f20f709e59a1b41caa24f7894267bc191267f84 /src/core/job.c
parentAdd debug messages to process.c (diff)
downloadipxe-4075f7596bd7b879706516fd84f4acbf19a7d2c5.tar.gz
ipxe-4075f7596bd7b879706516fd84f4acbf19a7d2c5.tar.xz
ipxe-4075f7596bd7b879706516fd84f4acbf19a7d2c5.zip
Unplug before sending close() message, to avoid screwing up interfaces
which respond to close with a reopen() (e.g. iSCSI).
Diffstat (limited to 'src/core/job.c')
-rw-r--r--src/core/job.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/job.c b/src/core/job.c
index 00c0e6c4..6c2faf30 100644
--- a/src/core/job.c
+++ b/src/core/job.c
@@ -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 );
}