Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311599
b: refs/heads/master
c: 5e5cfac
h: refs/heads/master
i:
  311597: fd0a976
  311595: 9c8bbfb
  311591: f6ca212
  311583: caca8ee
v: v3
  • Loading branch information
Asias He authored and Jens Axboe committed Jun 15, 2012
1 parent 18d37fb commit 2811347
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 458f27a9823a0841acb4ca59e0e7f33e181f85e2
refs/heads/master: 5e5cfac0c622d42eff4fa308e91b3c9c1884b4f0
10 changes: 5 additions & 5 deletions trunk/block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ void blk_cleanup_queue(struct request_queue *q)
/* mark @q DEAD, no new request or merges will be allowed afterwards */
mutex_lock(&q->sysfs_lock);
queue_flag_set_unlocked(QUEUE_FLAG_DEAD, q);

spin_lock_irq(lock);

/*
Expand All @@ -498,10 +497,6 @@ void blk_cleanup_queue(struct request_queue *q)
queue_flag_set(QUEUE_FLAG_NOMERGES, q);
queue_flag_set(QUEUE_FLAG_NOXMERGES, q);
queue_flag_set(QUEUE_FLAG_DEAD, q);

if (q->queue_lock != &q->__queue_lock)
q->queue_lock = &q->__queue_lock;

spin_unlock_irq(lock);
mutex_unlock(&q->sysfs_lock);

Expand All @@ -512,6 +507,11 @@ void blk_cleanup_queue(struct request_queue *q)
del_timer_sync(&q->backing_dev_info.laptop_mode_wb_timer);
blk_sync_queue(q);

spin_lock_irq(lock);
if (q->queue_lock != &q->__queue_lock)
q->queue_lock = &q->__queue_lock;
spin_unlock_irq(lock);

/* @q is and will stay empty, shutdown and put */
blk_put_queue(q);
}
Expand Down

0 comments on commit 2811347

Please sign in to comment.