Re: [linux-lvm] 2.4.3-ac{6,7} LVM hang

Jens Axboe (axboe@suse.de)
Thu, 19 Apr 2001 23:51:07 +0200


--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/