From: Ian Campbell Subject: Re: [RFC Patch v3 04/18] blktap2: dynamic allocate aio_requests to avoid -EBUSY error Date: Mon, 8 Sep 2014 12:34:00 +0100 Message-ID: <1410176040.10156.194.camel@kazak.uk.xensource.com> References: <1409908261-18682-1-git-send-email-wency@cn.fujitsu.com> <1409908261-18682-5-git-send-email-wency@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1409908261-18682-5-git-send-email-wency@cn.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wen Congyang Cc: Lai Jiangshan , Ian Jackson , Jiang Yunhong , Dong Eddie , xen devel , Shriram Rajagopalan , Yang Hongyang List-Id: xen-devel@lists.xenproject.org On Fri, 2014-09-05 at 17:10 +0800, Wen Congyang wrote: > From: Lai Jiangshan > > In normal case, there are at most TAPDISK_DATA_REQUESTS request > at the same time. But in remus mode, the write requests are > forwarded from the master side, and cached in block-remus. All > cached requests will be forwarded to aio driver when syncing > primary vm and backup vm. In this case, The number of requests > may be more than TAPDISK_DATA_REQUESTS. So aio driver can't hanlde > these requests at the same time, it will cause tapdisk2 exit. > > We don't know how many requests will be handled, so dynamic allocate > aio_requests to avoid this error. > > Signed-off-by: Lai Jiangshan > Signed-off-by: Jiang Yunhong > Signed-off-by: Wen Congyang > Cc: Shriram Rajagopalan blktap2 is essentially unmaintained these days. Since I think the remus folks are the mains ones left who care about it (and these patches seem to be Remus/COLO related) I think I'd be happy to apply the 4 blktap2 patches from this series with Shriram or Yang's Ack. Ian.