Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110541
b: refs/heads/master
c: e3335de
h: refs/heads/master
i:
  110539: 46fa03f
v: v3
  • Loading branch information
Jens Axboe committed Oct 9, 2008
1 parent bee04c5 commit 266cc89
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 9246b5f06deeea541e7c62437c2ad19a0b1172c0
refs/heads/master: e3335de94067dbebe22e3962632ead34e832cb60
8 changes: 8 additions & 0 deletions trunk/block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,14 @@ void blk_put_queue(struct request_queue *q)

void blk_cleanup_queue(struct request_queue *q)
{
/*
* We know we have process context here, so we can be a little
* cautious and ensure that pending block actions on this device
* are done before moving on. Going into this function, we should
* not have processes doing IO to this device.
*/
blk_sync_queue(q);

mutex_lock(&q->sysfs_lock);
queue_flag_set_unlocked(QUEUE_FLAG_DEAD, q);
mutex_unlock(&q->sysfs_lock);
Expand Down

0 comments on commit 266cc89

Please sign in to comment.