Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 723
b: refs/heads/master
c: 1181c1f
h: refs/heads/master
i:
  721: 6a799cf
  719: 6f5867a
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed May 1, 2005
1 parent 5f99707 commit 8b9c0f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 25 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: 41f11a4fa378201e902892130b11d78cf7cf8e10
refs/heads/master: 1181c1f923c349acaa01bca40fe600584f265132
27 changes: 3 additions & 24 deletions trunk/drivers/block/noop-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,13 @@
static int elevator_noop_merge(request_queue_t *q, struct request **req,
struct bio *bio)
{
struct list_head *entry = &q->queue_head;
struct request *__rq;
int ret;

if ((ret = elv_try_last_merge(q, bio))) {
ret = elv_try_last_merge(q, bio);
if (ret != ELEVATOR_NO_MERGE)
*req = q->last_merge;
return ret;
}

while ((entry = entry->prev) != &q->queue_head) {
__rq = list_entry_rq(entry);

if (__rq->flags & (REQ_SOFTBARRIER | REQ_HARDBARRIER))
break;
else if (__rq->flags & REQ_STARTED)
break;

if (!blk_fs_request(__rq))
continue;

if ((ret = elv_try_merge(__rq, bio))) {
*req = __rq;
q->last_merge = __rq;
return ret;
}
}

return ELEVATOR_NO_MERGE;
return ret;
}

static void elevator_noop_merge_requests(request_queue_t *q, struct request *req,
Expand Down

0 comments on commit 8b9c0f7

Please sign in to comment.