Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6772349ybh; Thu, 8 Aug 2019 05:30:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOOj80NkDy4LU92ISK/Qdc4AyVT8yXG3F5MfpsH85+z0UWMy/53yOjYB3hV7SBVCVkfrDZ X-Received: by 2002:aa7:8d98:: with SMTP id i24mr15382494pfr.199.1565267426935; Thu, 08 Aug 2019 05:30:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565267426; cv=none; d=google.com; s=arc-20160816; b=hYhvgLCAw8JzRGazWnpza6yCVRKRFm7jU8JNy4EPL3498leon3FpbeHF4TMCEGF3R5 JS/xSE8n2VegmeNV/DRUsDZ2J8dxN46hmegTeLo3Q415hjv574RpC04EmrhMAokuAmoQ 8ZhGati03pa9sH+A/y6I0ZbD3mtMLwkUH6aNNx8uD8WKTBdYxUOX0ugKL2dPRhl3z8LS EVWRFHWIWLVbmusGPDvh6JAFdnZGfkVdOkYVm3a66IXN8XA8/jXbqwA8rnqmiMDVr4o5 VfhL4JeXGoydSI1+xtAHVuMXU+dN8CB4KTf8sx/6aC5c/Wi32c3YLVAYTVQshaxUfWGg 3MKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=wOmAVXmXEzc3hGBuB18YP+PCVz6dp69hrx86Ry1w8YU=; b=rfOAkUN0SPZdGA6TPyUGmReDmdjaoP32zz/lV351ZQrWzlOa/OjrPOmi6WZB3Zh4Gj Y0LLhaYwLTgsFBbA7GFD3Pm/7zBL2Osj1P3499mOqhS13Ph9/T2CcTubNa3AyEfIRBJW UePwxbBeofJ5SVOcRLjbe3OUsF9M1j+mkK2GPQ3KXWm7mmGN8DVH/oIvxHyI8s/kRQcl htyR4fthU6Z2pjDerIzhDFkTYLMQrcTMJaI1bNQL2nDfsd5JVHM6+4J7y5IZ3+oMf0Cl R+9A6JCf+2UFe14avO2DTM170kps9e6fo0cOc9Y4PPKplLEkMAe8y7mz60xqIufAhzs1 2NxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6si1952925pjn.10.2019.08.08.05.30.11; Thu, 08 Aug 2019 05:30:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732358AbfHHM2q (ORCPT + 99 others); Thu, 8 Aug 2019 08:28:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58504 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727096AbfHHM2q (ORCPT ); Thu, 8 Aug 2019 08:28:46 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 896FC3007F39; Thu, 8 Aug 2019 12:28:46 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7975A19D70; Thu, 8 Aug 2019 12:28:46 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 65D5418089C8; Thu, 8 Aug 2019 12:28:46 +0000 (UTC) Date: Thu, 8 Aug 2019 08:28:46 -0400 (EDT) From: Pankaj Gupta To: Greg KH Cc: amit@kernel.org, mst@redhat.com, arnd@arndb.de, virtualization@lists.linux-foundation.org, jasowang@redhat.com, linux-kernel@vger.kernel.org Message-ID: <1512438873.7425183.1565267326035.JavaMail.zimbra@redhat.com> In-Reply-To: <20190808115630.GB2015@kroah.com> References: <20190808113606.19504-1-pagupta@redhat.com> <20190808113606.19504-3-pagupta@redhat.com> <20190808115630.GB2015@kroah.com> Subject: Re: [PATCH v2 2/2] virtio_ring: packed ring: fix virtqueue_detach_unused_buf MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.116.132, 10.4.195.15] Thread-Topic: virtio_ring: packed ring: fix virtqueue_detach_unused_buf Thread-Index: 1dZf+nrJonjXypT43ZqdcgxKewv0gw== X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 08 Aug 2019 12:28:46 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > This patch makes packed ring code compatible with split ring in function > > 'virtqueue_detach_unused_buf_*'. > > What does that mean? What does this "fix"? Patch 1 frees the buffers When a port is unplugged from the virtio console device. It does this with the help of 'virtqueue_detach_unused_buf_split/packed' function. For split ring case, corresponding function decrements avail ring index. For packed ring code, this functionality is not available, so this patch adds the required support and hence help to remove the unused buffer completely. Thanks, Pankaj > > thanks, > > greg k-h >