Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79564
b: refs/heads/master
c: 149a051
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Jan 30, 2008
1 parent 739f730 commit a104d55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 5b10ca19ea4859d3884d10a3eb8495de92089792
refs/heads/master: 149a051f82d2b3860fe32fa182dbc83a66274894
10 changes: 7 additions & 3 deletions trunk/block/as-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1275,9 +1275,13 @@ static void as_merged_requests(struct request_queue *q, struct request *req,
* Don't copy here but swap, because when anext is
* removed below, it must contain the unused context
*/
double_spin_lock(&rioc->lock, &nioc->lock, rioc < nioc);
swap_io_context(&rioc, &nioc);
double_spin_unlock(&rioc->lock, &nioc->lock, rioc < nioc);
if (rioc != nioc) {
double_spin_lock(&rioc->lock, &nioc->lock,
rioc < nioc);
swap_io_context(&rioc, &nioc);
double_spin_unlock(&rioc->lock, &nioc->lock,
rioc < nioc);
}
}
}

Expand Down

0 comments on commit a104d55

Please sign in to comment.