Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33430
b: refs/heads/master
c: 9f83e45
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Jens Axboe committed Aug 21, 2006
1 parent 8fb2f10 commit d67ddda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78bd4d484f81a611ef6ff02f909e576cb9aac7f2
refs/heads/master: 9f83e45eb54fc7198dc59fc63255341851ba4c48
2 changes: 2 additions & 0 deletions trunk/block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -3628,6 +3628,8 @@ struct io_context *current_io_context(gfp_t gfp_flags)
ret->nr_batch_requests = 0; /* because this is 0 */
ret->aic = NULL;
ret->cic_root.rb_node = NULL;
/* make sure set_task_ioprio() sees the settings above */
smp_wmb();
tsk->io_context = ret;
}

Expand Down
3 changes: 3 additions & 0 deletions trunk/fs/ioprio.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ static int set_task_ioprio(struct task_struct *task, int ioprio)
task->ioprio = ioprio;

ioc = task->io_context;
/* see wmb() in current_io_context() */
smp_read_barrier_depends();

if (ioc && ioc->set_ioprio)
ioc->set_ioprio(ioc, ioprio);

Expand Down

0 comments on commit d67ddda

Please sign in to comment.