Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7373
b: refs/heads/master
c: 4b0dc07
h: refs/heads/master
i:
  7371: d86bc17
v: v3
  • Loading branch information
Nikita Danilov authored and Linus Torvalds committed Sep 7, 2005
1 parent 92ae173 commit e7fee8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: ffdfc40976dda18d923cd001d44bf0ee55da1af4
refs/heads/master: 4b0dc07e66ade18e0209331afbd16b3de8384f5c
12 changes: 2 additions & 10 deletions trunk/drivers/block/deadline-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,18 +507,12 @@ static int deadline_dispatch_requests(struct deadline_data *dd)
const int reads = !list_empty(&dd->fifo_list[READ]);
const int writes = !list_empty(&dd->fifo_list[WRITE]);
struct deadline_rq *drq;
int data_dir, other_dir;
int data_dir;

/*
* batches are currently reads XOR writes
*/
drq = NULL;

if (dd->next_drq[READ])
drq = dd->next_drq[READ];

if (dd->next_drq[WRITE])
drq = dd->next_drq[WRITE];
drq = dd->next_drq[WRITE] ? : dd->next_drq[READ];

if (drq) {
/* we have a "next request" */
Expand All @@ -544,7 +538,6 @@ static int deadline_dispatch_requests(struct deadline_data *dd)
goto dispatch_writes;

data_dir = READ;
other_dir = WRITE;

goto dispatch_find_request;
}
Expand All @@ -560,7 +553,6 @@ static int deadline_dispatch_requests(struct deadline_data *dd)
dd->starved = 0;

data_dir = WRITE;
other_dir = READ;

goto dispatch_find_request;
}
Expand Down

0 comments on commit e7fee8d

Please sign in to comment.