Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40463
b: refs/heads/master
c: c1b707d
h: refs/heads/master
i:
  40461: 63015d4
  40459: cd912b9
  40455: 1b2f444
  40447: 88bcbb1
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Oct 30, 2006
1 parent fc0d88d commit e536195
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 0261d6886eb5822867a5310dc1e4479b940a1942
refs/heads/master: c1b707d253fe918b92882cff1dbd926b47e14fd2
5 changes: 3 additions & 2 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1215,11 +1215,12 @@ static inline void changed_ioprio(struct cfq_io_context *cic)
{
struct cfq_data *cfqd = cic->key;
struct cfq_queue *cfqq;
unsigned long flags;

if (unlikely(!cfqd))
return;

spin_lock(cfqd->queue->queue_lock);
spin_lock_irqsave(cfqd->queue->queue_lock, flags);

cfqq = cic->cfqq[ASYNC];
if (cfqq) {
Expand All @@ -1236,7 +1237,7 @@ static inline void changed_ioprio(struct cfq_io_context *cic)
if (cfqq)
cfq_mark_cfqq_prio_changed(cfqq);

spin_unlock(cfqd->queue->queue_lock);
spin_unlock_irqrestore(cfqd->queue->queue_lock, flags);
}

static void cfq_ioc_set_ioprio(struct io_context *ioc)
Expand Down

0 comments on commit e536195

Please sign in to comment.