Skip to contentSkip to conversation

md: Remove unnecessary printk when raid5 gets an unaligned read.

PATCH New NeilBrown 1 participant 1 message Jan 25, 2007 1 message not in the archive MD RAID

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20070125160528.21465.patches@notabene

NeilBrown

author
#1 lore raw

PATCH 1/1 md: Remove unnecessary printk when raid5 gets an unaligned read.

One more... (sorry about the dribs-and-drabs approach) NeilBrown

### Comments for Changeset

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.

### Diffstat output

 ./drivers/md/raid5.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/raid5.c +1 -1
diff .prev/drivers/md/raid5.c ./drivers/md/raid5.c
@@ -2630,7 +2630,7 @@ static int chunk_aligned_read(request_qu
 	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;
 	}
 	/*