From: NeilBrown Date: Fri, 26 Jan 2007 08:57:14 +0000 (-0800) Subject: [PATCH] md: remove unnecessary printk when raid5 gets an unaligned read. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c20086de9319ac406f1e96ad459763c9f9965b18;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] md: remove unnecessary printk when raid5 gets an unaligned read. 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 8a30b297ac3..467c16982d0 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -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; } /*