aoe: identify source of runt AoE packets
authorEd Cashin <ecashin@coraid.com>
Tue, 18 Dec 2012 00:04:17 +0000 (16:04 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:26 +0000 (17:15 -0800)
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>
drivers/block/aoe/aoecmd.c

index abf4ad2d3e185458c4fc4b66b8010ff7e6ac3dcf..25ef5c014fcaa4255e0e3009991b6a9ac1ff18c7 100644 (file)
@@ -1217,8 +1217,10 @@ noskb:           if (buf)
        case ATA_CMD_PIO_READ:
        case ATA_CMD_PIO_READ_EXT:
                if (skb->len < n) {
-                       pr_err("aoe: runt data size in read.  skb->len=%d need=%ld\n",
-                               skb->len, n);
+                       pr_err("%s e%ld.%d.  skb->len=%d need=%ld\n",
+                               "aoe: runt data size in read from",
+                               (long) d->aoemajor, d->aoeminor,
+                              skb->len, n);
                        clear_bit(BIO_UPTODATE, &buf->bio->bi_flags);
                        break;
                }
@@ -1233,7 +1235,9 @@ noskb:            if (buf)
                break;
        case ATA_CMD_ID_ATA:
                if (skb->len < 512) {
-                       pr_info("aoe: runt data size in ataid.  skb->len=%d\n",
+                       pr_info("%s e%ld.%d.  skb->len=%d need=512\n",
+                               "aoe: runt data size in ataid from",
+                               (long) d->aoemajor, d->aoeminor,
                                skb->len);
                        break;
                }