Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37566
b: refs/heads/master
c: 25034d7
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Jens Axboe committed Sep 30, 2006
1 parent 5f5ffe4 commit 5d5f079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 9bf09c23853bb8009625c2ec60dc6beb9472d3ca
refs/heads/master: 25034d7a83cf77667f3d65822484b305d4be6b25
7 changes: 2 additions & 5 deletions trunk/block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -3629,25 +3629,22 @@ EXPORT_SYMBOL(put_io_context);
/* Called by the exitting task */
void exit_io_context(void)
{
unsigned long flags;
struct io_context *ioc;
struct cfq_io_context *cic;

local_irq_save(flags);
task_lock(current);
ioc = current->io_context;
current->io_context = NULL;
ioc->task = NULL;
task_unlock(current);
local_irq_restore(flags);

ioc->task = NULL;
if (ioc->aic && ioc->aic->exit)
ioc->aic->exit(ioc->aic);
if (ioc->cic_root.rb_node != NULL) {
cic = rb_entry(rb_first(&ioc->cic_root), struct cfq_io_context, rb_node);
cic->exit(ioc);
}

put_io_context(ioc);
}

Expand Down

0 comments on commit 5d5f079

Please sign in to comment.