aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorEd Cashin <ecashin@coraid.com>2012-12-17 19:04:17 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-17 20:15:26 -0500
commitbf29754ae8c1d611f43f0e25f1ba18e558455d8d (patch)
tree9277724528aa4a30f0655986ac9c6198ceb9bc03 /drivers/block
parent4a6c9ee93cd03604bd0e61066ce6aaf4bc0f1eb9 (diff)
aoe: identify source of runt AoE packets
This change only affects experimental AoE storage networks. It modifies the console message about runt packets detected so that the AoE major and minor addresses of the AoE target that generated the runt are mentioned. Signed-off-by: Ed Cashin <ecashin@coraid.com> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/aoe/aoecmd.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index abf4ad2d3e18..25ef5c014fca 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -1217,8 +1217,10 @@ noskb: if (buf)
1217 case ATA_CMD_PIO_READ: 1217 case ATA_CMD_PIO_READ:
1218 case ATA_CMD_PIO_READ_EXT: 1218 case ATA_CMD_PIO_READ_EXT:
1219 if (skb->len < n) { 1219 if (skb->len < n) {
1220 pr_err("aoe: runt data size in read. skb->len=%d need=%ld\n", 1220 pr_err("%s e%ld.%d. skb->len=%d need=%ld\n",
1221 skb->len, n); 1221 "aoe: runt data size in read from",
1222 (long) d->aoemajor, d->aoeminor,
1223 skb->len, n);
1222 clear_bit(BIO_UPTODATE, &buf->bio->bi_flags); 1224 clear_bit(BIO_UPTODATE, &buf->bio->bi_flags);
1223 break; 1225 break;
1224 } 1226 }
@@ -1233,7 +1235,9 @@ noskb: if (buf)
1233 break; 1235 break;
1234 case ATA_CMD_ID_ATA: 1236 case ATA_CMD_ID_ATA:
1235 if (skb->len < 512) { 1237 if (skb->len < 512) {
1236 pr_info("aoe: runt data size in ataid. skb->len=%d\n", 1238 pr_info("%s e%ld.%d. skb->len=%d need=512\n",
1239 "aoe: runt data size in ataid from",
1240 (long) d->aoemajor, d->aoeminor,
1237 skb->len); 1241 skb->len);
1238 break; 1242 break;
1239 } 1243 }