diff options
author | Ed L. Cashin <ecashin@coraid.com> | 2006-09-20 14:36:49 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-10-18 12:53:50 -0700 |
commit | 4f51dc5e9ae195d2e8c22e5f574e004c2f6518a4 (patch) | |
tree | 852ab0b29d19f1ac9a4f7e7eeba6510c0ee7bca1 /drivers/block/aoe/aoedev.c | |
parent | dced3a053dd5415a7321e1ae153c96dea644da4e (diff) | |
download | op-kernel-dev-4f51dc5e9ae195d2e8c22e5f574e004c2f6518a4.zip op-kernel-dev-4f51dc5e9ae195d2e8c22e5f574e004c2f6518a4.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c index f51d87b..7fd63d4 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; |