Skip to content

Commit

Permalink
[PATCH] md: remove unnecessary printk when raid5 gets an unaligned read.
Browse files Browse the repository at this point in the history
raid5_mergeable_bvec tries to ensure that raid5 never sees a read request
that does not fit within just one chunk.  However as we must always accept
a single-page read, that is not always possible.

So when "in_chunk_boundary" fails, it might be unusual, but it is not a
problem and printing a message every time is a bad idea.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Jan 26, 2007
1 parent fe33f6f commit c20086d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -2680,7 +2680,7 @@ static int chunk_aligned_read(request_queue_t *q, struct bio * raid_bio)
mdk_rdev_t *rdev;

if (!in_chunk_boundary(mddev, raid_bio)) {
printk("chunk_aligned_read : non aligned\n");
PRINTK("chunk_aligned_read : non aligned\n");
return 0;
}
/*
Expand Down

0 comments on commit c20086d

Please sign in to comment.