Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123308
b: refs/heads/master
c: 62c1fe9
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Dec 29, 2008
1 parent fd27718 commit fab869a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 8ae30b895805a6e2bb725b1d78b12daabd7eadfe
refs/heads/master: 62c1fe9d9f0a676fce89185b1513f0e5f473c72c
10 changes: 9 additions & 1 deletion trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,15 @@ static void cfq_exit_single_io_context(struct io_context *ioc,
unsigned long flags;

spin_lock_irqsave(q->queue_lock, flags);
__cfq_exit_single_io_context(cfqd, cic);

/*
* Ensure we get a fresh copy of the ->key to prevent
* race between exiting task and queue
*/
smp_read_barrier_depends();
if (cic->key)
__cfq_exit_single_io_context(cfqd, cic);

spin_unlock_irqrestore(q->queue_lock, flags);
}
}
Expand Down

0 comments on commit fab869a

Please sign in to comment.