Skip to content

Commit

Permalink
[PATCH] elevator: fixup typo in merge logic
Browse files Browse the repository at this point in the history
The recent io scheduler allow_merge commit left the block layer with
no merging, oops. This patch fixes that up.

That means the CFQ change needs to be verified again, it might not fix
the original bug now.  But that's a seperate thing, I'll double check
that tomorrow.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Dec 22, 2006
1 parent 3e67c09 commit bb4067e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/elevator.c
Expand Up @@ -82,7 +82,7 @@ inline int elv_rq_merge_ok(struct request *rq, struct bio *bio)
/*
* must be same device and not a special request
*/
if (rq->rq_disk != bio->bi_bdev->bd_disk || !rq->special)
if (rq->rq_disk != bio->bi_bdev->bd_disk || rq->special)
return 0;

if (!elv_iosched_allow_merge(rq, bio))
Expand Down

0 comments on commit bb4067e

Please sign in to comment.