summaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoedev.c
diff options
context:
space:
mode:
authorEd L. Cashin <ecashin@coraid.com>2006-09-20 14:36:49 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-10-18 12:53:50 -0700
commit4f51dc5e9ae195d2e8c22e5f574e004c2f6518a4 (patch)
tree852ab0b29d19f1ac9a4f7e7eeba6510c0ee7bca1 /drivers/block/aoe/aoedev.c
parentdced3a053dd5415a7321e1ae153c96dea644da4e (diff)
downloadblackbird-op-linux-4f51dc5e9ae195d2e8c22e5f574e004c2f6518a4.tar.gz
blackbird-op-linux-4f51dc5e9ae195d2e8c22e5f574e004c2f6518a4.zip
aoe: zero copy write 2 of 2
Avoid memory copy on writes. (This patch follows patch 4.) Signed-off-by: "Ed L. Cashin" <ecashin@coraid.com> Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/block/aoe/aoedev.c')
-rw-r--r--drivers/block/aoe/aoedev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c
index f51d87bbb501..7fd63d4daf51 100644
--- a/drivers/block/aoe/aoedev.c
+++ b/drivers/block/aoe/aoedev.c
@@ -121,6 +121,7 @@ aoedev_downdev(struct aoedev *d)
mempool_free(buf, d->bufpool);
bio_endio(bio, bio->bi_size, -EIO);
}
+ skb_shinfo(f->skb)->nr_frags = f->skb->data_len = 0;
}
d->inprocess = NULL;
OpenPOWER on IntegriCloud