[PATCH] Re: fix: umount: device is busy

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Fri Apr 21 2000 - 06:21:15 EST


Jeremy Fitzhardinge wrote:
>
> On 20-Apr-2000 Andrew Morton wrote:
> > --- linux-2.3.99-pre6-3/fs/namei.c Sun Apr 16 22:30:16 2000
> > +++ linux-akpm/fs/namei.c Fri Apr 21 00:07:39 2000
>
> Fixed it for me.

Did you guys try Al Viro's patch?

-- 
Jeff Garzik              | Nothing cures insomnia like the
Building 1024            | realization that it's time to get up.
MandrakeSoft, Inc.       |        -- random fortune

diff -urN vanilla/linux-2.3.99-pre6-pre3/fs/namei.c linux_2_3/fs/namei.c --- vanilla/linux-2.3.99-pre6-pre3/fs/namei.c Tue Apr 11 19:53:43 2000 +++ linux_2_3/fs/namei.c Mon Apr 17 12:59:12 2000 @@ -379,10 +379,10 @@ err = -ENOENT; inode = dentry->d_inode; if (!inode) - break; + goto out_dput; err = -ENOTDIR; if (!inode->i_op) - break; + goto out_dput; if (inode->i_op->follow_link) { err = do_follow_link(dentry, nd); @@ -474,6 +474,9 @@ nd->last = this; return_base: return 0; +out_dput: + dput(dentry); + break; } dput(nd->dentry); mntput(nd->mnt);

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:18 EST