From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757303Ab1GKHx4 (ORCPT ); Mon, 11 Jul 2011 03:53:56 -0400 Received: from hera.kernel.org ([140.211.167.34]:44003 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757206Ab1GKHxz (ORCPT ); Mon, 11 Jul 2011 03:53:55 -0400 Message-ID: <4E1AABF4.5060202@oracle.com> Date: Mon, 11 Jul 2011 15:53:24 +0800 From: Joe Jin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Lightning/1.0b3pre OracleBeehiveExtension/1.0.0.2-OracleInternal ObetStats/CATLAF_1292475699435-498544290 Thunderbird/3.1.10 MIME-Version: 1.0 To: Konrad Rzeszutek Wilk CC: Daniel Stodden , Jens Axboe , annie.li@oracle.com, Jeremy Fitzhardinge , Ian Campbell , Kurt C Hackel , Greg Marsden , "xen-devel@lists.xensource.com" , "linux-kernel@vger.kernel.org" Subject: Re: xen-blkfront: Don't send closing notification to backend in blkfront_closing() References: <4E16AE55.50500@oracle.com> <20110708160414.GA30120@dumpdata.com> <4E17A01F.8060505@oracle.com> <20110709131153.GA25916@dumpdata.com> In-Reply-To: <20110709131153.GA25916@dumpdata.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4E1AAC0C.0057:SCFMA922111,ss=1,re=-4.000,fgs=0 X-Greylist: Delayed for 71:40:54 by milter-greylist-4.2.3 (hera.kernel.org [140.211.167.34]); Mon, 11 Jul 2011 07:53:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/09/11 21:11, Konrad Rzeszutek Wilk wrote: >>>> 5. umount the partition/disk in guest, command hung. exactly at here, any >>>> IO request to the partition/disk will hang. >>> >>> I get that with the patch and without it: >>> >>> sh-4.1# >>> sh-4.1# [ 519.814048] block xvda: device/vbd/51712 was hot-unplugged, 1 stale handles >>> >>> sh-4.1# df -h >>> Filesystem Size Used Avail Use% Mounted on >>> none 490M 120K 490M 1% /dev >>> none 490M 131M 359M 27% /lib/modules/3.0.0-rc6-00052-g3edce4b-dirty >>> shm 10M 0 10M 0% /dev/shm >>> var_tmp 10M 0 10M 0% /var/tmp >>> /dev/xvda 20G 173M 19G 1% /test >>> sh-4.1# umount /test >>> >>> Any ideas? >> >> This caused by backend kthread stopped, any IO request to the real device will hang, that >> is the patch intend to resolving. > > I get this hang with the patch (and without). Is there a corresponding patch to the backend? > (The backend is the same exact version as DomU - 3.0-rc6 + #stable/for-jens). My guest using linux-3.0 the latest kernel, backend based 2.6.32 kernel. Without the patch, xm block-detach timeout and umount hang, with the patch xm block-detach timeout but umount works fine. Thanks, Joe From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Jin Subject: Re: xen-blkfront: Don't send closing notification to backend in blkfront_closing() Date: Mon, 11 Jul 2011 15:53:24 +0800 Message-ID: <4E1AABF4.5060202@oracle.com> References: <4E16AE55.50500@oracle.com> <20110708160414.GA30120@dumpdata.com> <4E17A01F.8060505@oracle.com> <20110709131153.GA25916@dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110709131153.GA25916@dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: Jeremy Fitzhardinge , Ian Campbell , Kurt C Hackel , Greg Marsden , "linux-kernel@vger.kernel.org" , annie.li@oracle.com, "xen-devel@lists.xensource.com" , Jens Axboe , Daniel Stodden List-Id: xen-devel@lists.xenproject.org On 07/09/11 21:11, Konrad Rzeszutek Wilk wrote: >>>> 5. umount the partition/disk in guest, command hung. exactly at here, any >>>> IO request to the partition/disk will hang. >>> >>> I get that with the patch and without it: >>> >>> sh-4.1# >>> sh-4.1# [ 519.814048] block xvda: device/vbd/51712 was hot-unplugged, 1 stale handles >>> >>> sh-4.1# df -h >>> Filesystem Size Used Avail Use% Mounted on >>> none 490M 120K 490M 1% /dev >>> none 490M 131M 359M 27% /lib/modules/3.0.0-rc6-00052-g3edce4b-dirty >>> shm 10M 0 10M 0% /dev/shm >>> var_tmp 10M 0 10M 0% /var/tmp >>> /dev/xvda 20G 173M 19G 1% /test >>> sh-4.1# umount /test >>> >>> Any ideas? >> >> This caused by backend kthread stopped, any IO request to the real device will hang, that >> is the patch intend to resolving. > > I get this hang with the patch (and without). Is there a corresponding patch to the backend? > (The backend is the same exact version as DomU - 3.0-rc6 + #stable/for-jens). My guest using linux-3.0 the latest kernel, backend based 2.6.32 kernel. Without the patch, xm block-detach timeout and umount hang, with the patch xm block-detach timeout but umount works fine. Thanks, Joe