From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21B2BCCA488 for ; Thu, 21 Jul 2022 07:09:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232339AbiGUHJC (ORCPT ); Thu, 21 Jul 2022 03:09:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232334AbiGUHJA (ORCPT ); Thu, 21 Jul 2022 03:09:00 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BDB5F7B355 for ; Thu, 21 Jul 2022 00:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658387338; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=20XB7X4uMFrdCQowchk09EqnsM7R3g6B8Dxeh2uQp8M=; b=Do7a/N7NIGRItx61IRnl6DoU+PQsIJQgkpKehBFhpIDGecdXcUMwMwdW+WX3ZT7AEdXyJH GDMeeHRu35q7/nzKVpBaGRc6uOF5HqEJYiXK2P2HStX8QCCpnzXzxlXiOC0nrdKNockDHt xqndSTd/5vAc1MCuJko+kMB5h2s4oYE= Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-657-qOd4TV27NlqK61b1JdSDDQ-1; Thu, 21 Jul 2022 03:08:56 -0400 X-MC-Unique: qOd4TV27NlqK61b1JdSDDQ-1 Received: by mail-pl1-f198.google.com with SMTP id h12-20020a170902748c00b0016d29671bf7so704896pll.9 for ; Thu, 21 Jul 2022 00:08:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=20XB7X4uMFrdCQowchk09EqnsM7R3g6B8Dxeh2uQp8M=; b=pnZomHWP4AYbuBsHqIRLPZnBzhjYpiMV5Axc2ATPkw0F8ecI8WCtWHLLwgxxjyZrQ2 jQ4ZofdI5Gycd+zb0TLKIUqt0n3Q3KrbFG4jouG9GvXtOgb8Eveb8FrM8X8EjzhCMGrZ sTaAqHFpoVBZVFV5cSuaKAEg6331b9GJIw9Y31ziVVczIch87F1W+Y7hjb+XSkFVVelG SWF97efasjIXWJO1HxRRzf1rC79XCuxt4eu7JniG7yzvVF5Y+DK+EPogslGlyG6ltFzl bW6egUW3jhqB76S3NzUZAD4Hh0JINqjUgw9f2ArJeYVL7OF3xmAM5z4VuDTubLHlY1ac sTiA== X-Gm-Message-State: AJIora8e5/BG3t0Vcc2IpmKAasOg/EB1SduhEw50lTDF1yavY01mtxEo Lf5KDglmNWrNDma0uqnSluOejvi7xoWfgRuxov2bJjymu6G7+l9gi7KvoB6Ab/6HVSmTNSC1WIr 6ptGMv6Qnzmk4S2sJ2r21uQ== X-Received: by 2002:a05:6a00:998:b0:52a:db4c:541b with SMTP id u24-20020a056a00099800b0052adb4c541bmr42860400pfg.35.1658387335764; Thu, 21 Jul 2022 00:08:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uJ7ogdlWO9wq9dujWOVNZNut2Pk1AGg7QtSX4Ep4NpLAUcMg6IEWg7tcD5uQIK4LSqmKQ0RA== X-Received: by 2002:a05:6a00:998:b0:52a:db4c:541b with SMTP id u24-20020a056a00099800b0052adb4c541bmr42860380pfg.35.1658387335468; Thu, 21 Jul 2022 00:08:55 -0700 (PDT) Received: from [10.72.12.47] ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id 82-20020a621455000000b0052bae7b2af8sm862397pfu.201.2022.07.21.00.08.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Jul 2022 00:08:54 -0700 (PDT) Message-ID: Date: Thu, 21 Jul 2022 15:08:44 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v12 07/40] virtio_ring: split: introduce vring_free_split() Content-Language: en-US To: Xuan Zhuo , virtualization@lists.linux-foundation.org Cc: Richard Weinberger , Anton Ivanov , Johannes Berg , "Michael S. Tsirkin" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hans de Goede , Mark Gross , Vadim Pasternak , Bjorn Andersson , Mathieu Poirier , Cornelia Huck , Halil Pasic , Eric Farman , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Vincent Whitchurch , linux-um@lists.infradead.org, netdev@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, bpf@vger.kernel.org, kangjie.xu@linux.alibaba.com References: <20220720030436.79520-1-xuanzhuo@linux.alibaba.com> <20220720030436.79520-8-xuanzhuo@linux.alibaba.com> From: Jason Wang In-Reply-To: <20220720030436.79520-8-xuanzhuo@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org 在 2022/7/20 11:04, Xuan Zhuo 写道: > Free the structure struct vring_vritqueue_split. > > Subsequent patches require it. > > Signed-off-by: Xuan Zhuo Acked-by: Jason Wang > --- > drivers/virtio/virtio_ring.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c > index 87ce17562b29..c94c5461e702 100644 > --- a/drivers/virtio/virtio_ring.c > +++ b/drivers/virtio/virtio_ring.c > @@ -939,6 +939,17 @@ static void *virtqueue_detach_unused_buf_split(struct virtqueue *_vq) > return NULL; > } > > +static void vring_free_split(struct vring_virtqueue_split *vring_split, > + struct virtio_device *vdev) > +{ > + vring_free_queue(vdev, vring_split->queue_size_in_bytes, > + vring_split->vring.desc, > + vring_split->queue_dma_addr); > + > + kfree(vring_split->desc_state); > + kfree(vring_split->desc_extra); > +} > + > static struct virtqueue *vring_create_virtqueue_split( > unsigned int index, > unsigned int num,