Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 19 Apr 2001 17:51:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 19 Apr 2001 17:51:29 -0400 Received: from ns.virtualhost.dk ([195.184.98.160]:3084 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id ; Thu, 19 Apr 2001 17:51:19 -0400 Date: Thu, 19 Apr 2001 23:51:07 +0200 From: Jens Axboe To: Arjan Filius Cc: linux-lvm@sistina.com, linux-kernel@vger.kernel.org, linux-openlvm@nl.linux.org Subject: Re: [linux-lvm] 2.4.3-ac{6,7} LVM hang Message-ID: <20010419235107.G750@suse.de> In-Reply-To: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: ; from iafilius@xs4all.nl on Thu, Apr 19, 2001 at 11:13:49PM +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 19 2001, Arjan Filius wrote: > Hello, > > Same here as reported. > restoring lvm.c from 2.4.3 into 2.4.4-pre? "fixes" this. (tested not ac's > kernel) Does attached patch fix it? -- Jens Axboe --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=lvm-244p4-1 --- /opt/kernel/linux-2.4.4-pre4/drivers/md/lvm.c Wed Apr 18 14:37:34 2001 +++ drivers/md/lvm.c Thu Apr 19 23:40:39 2001 @@ -1674,10 +1674,11 @@ int rw, struct buffer_head *bh) { - int ret = lvm_map(bh, rw); - if (ret < 0) - buffer_IO_error(bh); - return ret; + if (lvm_map(bh, rw) >= 0) + return 1; + + buffer_IO_error(bh); + return 0; } --9jxsPFA5p3P2qPhR-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/