Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142131
b: refs/heads/master
c: 015640e
h: refs/heads/master
i:
  142129: 93e870f
  142127: dc58d1e
v: v3
  • Loading branch information
FUJITA Tomonori authored and James Bottomley committed Apr 3, 2009
1 parent 456281c commit af7e7b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1beb6fa85ca9afaee109811a3f4a984232a32a4f
refs/heads/master: 015640edb1f346e0b2eda703587c4cd1c310ec1d
9 changes: 6 additions & 3 deletions trunk/drivers/scsi/sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1312,8 +1312,10 @@ static void sg_rq_end_io(struct request *rq, int uptodate)
wake_up_interruptible(&sfp->read_wait);
kill_fasync(&sfp->async_qp, SIGPOLL, POLL_IN);
kref_put(&sfp->f_ref, sg_remove_sfp);
} else
execute_in_process_context(sg_rq_end_io_usercontext, &srp->ew);
} else {
INIT_WORK(&srp->ew.work, sg_rq_end_io_usercontext);
schedule_work(&srp->ew.work);
}
}

static struct file_operations sg_fops = {
Expand Down Expand Up @@ -2099,7 +2101,8 @@ static void sg_remove_sfp(struct kref *kref)
write_unlock_irqrestore(&sg_index_lock, iflags);
wake_up_interruptible(&sdp->o_excl_wait);

execute_in_process_context(sg_remove_sfp_usercontext, &sfp->ew);
INIT_WORK(&sfp->ew.work, sg_remove_sfp_usercontext);
schedule_work(&sfp->ew.work);
}

static int
Expand Down

0 comments on commit af7e7b8

Please sign in to comment.