Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751792AbdH3Bbl (ORCPT ); Tue, 29 Aug 2017 21:31:41 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:25108 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751318AbdH3Bbk (ORCPT ); Tue, 29 Aug 2017 21:31:40 -0400 To: Long Li Cc: "K . Y . Srinivasan" , Haiyang Zhang , "James E . J . Bottomley" , devel@linuxdriverproject.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Long Li Subject: Re: [PATCH] storvsc: fix memory leak on ring buffer busy From: "Martin K. Petersen" Organization: Oracle Corporation References: <20170829004359.28526-1-longli@exchange.microsoft.com> Date: Tue, 29 Aug 2017 21:31:11 -0400 In-Reply-To: <20170829004359.28526-1-longli@exchange.microsoft.com> (Long Li's message of "Mon, 28 Aug 2017 17:43:59 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 441 Lines: 15 Long, > When storvsc is sending I/O to Hyper-v, it may allocate a bigger > buffer descriptor for large data payload that can't fit into a > pre-allocated buffer descriptor. This bigger buffer is freed on return > path. > > If I/O request to Hyper-v fails due to ring buffer busy, the storvsc > allocated buffer descriptor should also be freed. Which kernel version is this patch aimed at? -- Martin K. Petersen Oracle Linux Engineering