Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 24 Jul 2002 15:33:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 24 Jul 2002 15:33:00 -0400 Received: from admin.nni.com ([216.107.0.51]:11790 "EHLO admin.nni.com") by vger.kernel.org with ESMTP id ; Wed, 24 Jul 2002 15:32:59 -0400 Date: Wed, 24 Jul 2002 15:36:06 -0400 From: Andrew Rodland To: Kareem Dana Cc: linux-kernel@vger.kernel.org Subject: Re: loop.o device busy after umount Message-Id: <20020724153606.3c1189c6.arodland@noln.com> In-Reply-To: <20020724153319.5ebd589b.kareemy@earthlink.net> References: <20020724145919.01c79fce.kareemy@earthlink.net> <20020724151904.3d719dea.arodland@noln.com> <20020724153319.5ebd589b.kareemy@earthlink.net> X-Mailer: Sylpheed version 0.7.8claws55 (GTK+ 1.2.10; i386-debian-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1417 Lines: 39 On Wed, 24 Jul 2002 15:33:19 -0400 Kareem Dana wrote: > Andrew Rodland wrote: > > Kareem Dana wrote: > > > > > Hello, > > > > > > I've noticed in kernel 2.4.18 that my loop module remains busy > > > after I umount the device using it. For example > > > > > > mount -t iso9660 -o loop file.iso /mnt > > > * loop module gets loaded > > > * lsmod shows "loop 7952 1 (autoclean)" > > > * ps ax shows [loop0] process > > > > > > then > > > umount /mnt > > > lsmod shows the same thing - specifically the use of loop as 1 and > > > the[loop0] process remains open. Trying to rmmod loop gives me a > > > device or resource busy error. > > > > For some reason or other, umount didn't losetup -d the device. > > > > Try losetup -d /dev/loop0, and see whether it does what you want, or > > returns some sort of error. > > > > --hobbs > losetup worked like a charm. Thanks. Any reason umount would not do > that automatically though? umount -V returns umount: mount-2.11r No idea, although I can't claim to be an expert. I have mount-2.11h, and it seems to do it automatically for me. - 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/