Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6788457ybh; Thu, 8 Aug 2019 05:45:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiXCCnyM34KgTWjOg5LJ8aJeLIHR/I8ZTQDofQ2Zwd1WAFWy2d4+aOiM9/VFnDfM54C+G+ X-Received: by 2002:a17:902:4681:: with SMTP id p1mr13547819pld.256.1565268317844; Thu, 08 Aug 2019 05:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565268317; cv=none; d=google.com; s=arc-20160816; b=Z739nAP4udaai6GLKX1lq9bsjma4O06EOko0hjVnwQLnBMNxzn+Ke4wJZALA/wpbhl xmHDl8JXtNwpc1pQd4INq5on0B+UE7k70qs3Z/AsBZXxRlZM+3i5mMCs6u6WmspjnvtZ o0W4Iu/VR+moMQmaZ5VNwvtbOa/OFOb/MxHhw423wizFck0X1CzbD6MS0AUWRzccpOMK hMSUkKw64MOpF2fOAMXX42AxrRGSy4drqKlfXp7T7hhXn693YbvoQlq24+H3Gt7XrlOb Seh+RmDzs/OePWog63mJgBhxdJXZo0R4pcDogP2hJ6oQHePru4zAH1N3ZeQuBX+pkqJy MEcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NaMdaSq3cTdPs9ep2Z3h0wCOKCEDy+/PuN8TsQ0YcI0=; b=fQMMWvsRppYxqSI/0lbyXJRTomUVfXbp+wI7PIEIvoF1Z3KCUnN2/weppTGUL9lWvR bcINNKj0AsDjC6w/VGTiVGid4h+ri9q3MgxJzj0oY3envjoaZ+JbUXqPFwYyZnNVrTsv DrSAQiiXiMv/8sOLtmLUL3hexEYBunbhibAj8PnP55bMVEMKRLVwMzlNGK1WIzrmUE+v /koyLS9FNOaJIe8e20CUVdKMF0aPWeD2z6KgLP6/QmWuV23RfxzZhlh83DLdLHufkNcu 7CRxbNwPIDeM0jkzUJVRGxxJuBO9jlWHGD52+V8k7SM4E9KegNH7C6EVatljncaXJrIl ZmiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="TJa/AClp"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i189si55016073pge.253.2019.08.08.05.45.01; Thu, 08 Aug 2019 05:45:17 -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; dkim=pass header.i=@kernel.org header.s=default header.b="TJa/AClp"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732354AbfHHMmf (ORCPT + 99 others); Thu, 8 Aug 2019 08:42:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:49090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728120AbfHHMmf (ORCPT ); Thu, 8 Aug 2019 08:42:35 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 38D102171F; Thu, 8 Aug 2019 12:42:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565268154; bh=H3Xm8TVT+2ZXNimGkZTlU8kaRfKXyQSpxg1WVh70iLI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TJa/AClplyDnhtCu5fn8WkR83+bJajnIKx+Y4J/LT90BwsHTPtDpOtcgvGdDDQlbd IRrhenCSxisAAJhQynis+WiF7IQpOcrPUH0La7Cj68dREP9+aJBzFgC77voWxfueNH jSfQXHMTJZxEwws2i/ZtP+jMwgtRbtPCP0JEjFdY= Date: Thu, 8 Aug 2019 14:42:32 +0200 From: Greg KH To: Pankaj Gupta Cc: amit@kernel.org, mst@redhat.com, arnd@arndb.de, virtualization@lists.linux-foundation.org, jasowang@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] virtio_ring: packed ring: fix virtqueue_detach_unused_buf Message-ID: <20190808124232.GA32144@kroah.com> References: <20190808113606.19504-1-pagupta@redhat.com> <20190808113606.19504-3-pagupta@redhat.com> <20190808115630.GB2015@kroah.com> <1512438873.7425183.1565267326035.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1512438873.7425183.1565267326035.JavaMail.zimbra@redhat.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 08, 2019 at 08:28:46AM -0400, Pankaj Gupta wrote: > > > > > 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. Explain all of this in great detail in the changelog comment. What you have in there today does not make any sense. thanks, greg k-h