* Re: [NFS] VFS: Busy inodes after unmount on 2 way SMP
@ 2003-09-12 23:58 Ion Badulescu
2003-09-13 0:34 ` H. Peter Anvin
0 siblings, 1 reply; 7+ messages in thread
From: Ion Badulescu @ 2003-09-12 23:58 UTC (permalink / raw)
To: autofs
Sorry, I got the autofs list address wrong the first time around. -Ion
---------- Forwarded message ----------
On Thu, 11 Sep 2003 17:11:40 -0700, Arun Sharma <arun.sharma@intel.com> wrote:
> We've seen a few "VFS: Busy inodes after unmount. Self-destruct in 5 seconds. Have a nice day.." messages on a dual processor NFS client. Here's the use case:
>
> - Due to network load issues, the NFS server becomes unreachable for some time
> - The automounter tries to expire the mount
> - The unmount finds a couple of busy inodes. Putting some debug printks shows that typically two inodes are busy i.e. have inode->i_count == 1. But they don't have any waiters on inode->i_wait. Further, the inodes that are busy are
> /mnt/foo -> autofs mount point
> /mnt/foo/bar -> bar is a symbolic link
>
> It's not clear if this is a NFS issue or a autofs issue, but it's seen often with autofs. Are there any known race conditions that have been fixed after 2.4.20 ? The two calls I'm worried about are:
>
> fs/autofs/root.c:305: d_instantiate(dentry, iget(dir->i_sb,ent->ino));
> fs/autofs/root.c:416: d_instantiate(dentry, iget(dir->i_sb,ino));
I don't know if it's the same issue, but I've seen it many many times
while testing amd's autofs functionality. It occurs when a non-empty
autofs filesystem is unmounted, e.g. if it has some leftover
subdirectories from previous mounts. Therefore I'd say it's quite
clearly an autofs issue, at least in my case.
Do you see it when shutting down the automounter, or in other cases as
well?
Ion
--
It is better to keep your mouth shut and be thought a fool,
than to open it and remove all doubt.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Re: [NFS] VFS: Busy inodes after unmount on 2 way SMP
2003-09-12 23:58 [NFS] VFS: Busy inodes after unmount on 2 way SMP Ion Badulescu
@ 2003-09-13 0:34 ` H. Peter Anvin
0 siblings, 0 replies; 7+ messages in thread
From: H. Peter Anvin @ 2003-09-13 0:34 UTC (permalink / raw)
To: Ion Badulescu; +Cc: autofs
Ion Badulescu wrote:
>
> I don't know if it's the same issue, but I've seen it many many times
> while testing amd's autofs functionality. It occurs when a non-empty
> autofs filesystem is unmounted, e.g. if it has some leftover
> subdirectories from previous mounts. Therefore I'd say it's quite
> clearly an autofs issue, at least in my case.
>
> Do you see it when shutting down the automounter, or in other cases as
> well?
>
This happens when *any* filesystem allows itself to be unmounted without
proper cleanup. If it happens in normal operation, it is more likely an
NFS problem. If it happens on automounter shutdown, it's likely an
autofs problem.
-hpa
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VFS: Busy inodes after unmount on 2 way SMP
@ 2003-09-13 0:16 Ion Badulescu
2003-09-15 21:42 ` [NFS] " Arun Sharma
0 siblings, 1 reply; 7+ messages in thread
From: Ion Badulescu @ 2003-09-13 0:16 UTC (permalink / raw)
To: Arun Sharma; +Cc: nfs, autofs
On Fri, 12 Sep 2003, Arun Sharma wrote:
> Ion Badulescu wrote:
> >
> > I don't know if it's the same issue, but I've seen it many many times
> > while testing amd's autofs functionality. It occurs when a non-empty
> > autofs filesystem is unmounted, e.g. if it has some leftover
> > subdirectories from previous mounts. Therefore I'd say it's quite
> > clearly an autofs issue, at least in my case.
>
> Do you have a case that can deterministically reproduce the issue ?
Oh yeah, easily. Kill the automounter while some things are mounted,
unmount everything by hand but do not rmdir the mountpoints. When you
unmount the autofs filesystem itself, you will get the self destruct
message.
> Everytime I've seen it, it's during an unmount by /usr/sbin/automount
> after the mount has expired. It's usually coupled with a temporarily
> unreachable NFS server.
So maybe this is a different issue than the one I am describing...
Ion
--
It is better to keep your mouth shut and be thought a fool,
than to open it and remove all doubt.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [NFS] VFS: Busy inodes after unmount on 2 way SMP
2003-09-13 0:16 Ion Badulescu
@ 2003-09-15 21:42 ` Arun Sharma
2003-09-15 22:25 ` H. Peter Anvin
0 siblings, 1 reply; 7+ messages in thread
From: Arun Sharma @ 2003-09-15 21:42 UTC (permalink / raw)
To: Ion Badulescu; +Cc: autofs, nfs
Ion Badulescu wrote:
> On Fri, 12 Sep 2003, Arun Sharma wrote:
>
>
>>Ion Badulescu wrote:
>>
>>>I don't know if it's the same issue, but I've seen it many many times
>>>while testing amd's autofs functionality. It occurs when a non-empty
>>>autofs filesystem is unmounted, e.g. if it has some leftover
>>>subdirectories from previous mounts. Therefore I'd say it's quite
>>>clearly an autofs issue, at least in my case.
>>
>>Do you have a case that can deterministically reproduce the issue ?
>
>
> Oh yeah, easily. Kill the automounter while some things are mounted,
> unmount everything by hand but do not rmdir the mountpoints. When you
> unmount the autofs filesystem itself, you will get the self destruct
> message.
>
Thanks. This reproduces the problem I'm chasing very well. I think this is clearly an unacceptable kernel bug.
-Arun
Sep 15 13:58:57 arun-desktop kernel: VFS: Busy inodes after unmount. Self-destruct in 5 seconds. Have a nice day...
<snip>
Sep 15 14:00:00 arun-desktop kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000004
Sep 15 14:00:00 arun-desktop kernel: printing eip:
Sep 15 14:00:00 arun-desktop kernel: c015c738
Sep 15 14:00:00 arun-desktop kernel: *pde = 00000000
Sep 15 14:00:00 arun-desktop kernel: Oops: 0000
Sep 15 14:00:00 arun-desktop kernel: ide-cd cdrom emu10k1 ac97_codec sound soundcore nfs lockd sunrpc parport_pc lp parport autofs iptable_filter ip_tables
e100 keybdev mousedev hid input usb-uhc
Sep 15 14:00:00 arun-desktop kernel: CPU: 0
Sep 15 14:00:00 arun-desktop kernel: EIP: 0060:[<c015c738>] Not tainted
Sep 15 14:00:00 arun-desktop kernel: EFLAGS: 00010246
Sep 15 14:00:00 arun-desktop kernel:
Sep 15 14:00:00 arun-desktop kernel: EIP is at destroy_inode [kernel] 0x28 (2.4.20-8)
Sep 15 14:00:00 arun-desktop kernel: eax: 00000000 ebx: cee44c80 ecx: 00000000 edx: cee44c80
Sep 15 14:00:00 arun-desktop kernel: esi: cb32ee00 edi: cee44c80 ebp: 000003c6 esp: cff87f84
Sep 15 14:00:01 arun-desktop kernel: ds: 0068 es: 0068 ss: 0068
Sep 15 14:00:01 arun-desktop kernel: Process kswapd (pid: 5, stackpage=cff87000)
Sep 15 14:00:01 arun-desktop kernel: Stack: cee44c80 cb32ee00 cb32ee18 c015b563 cee44c80 cb0ff180 cff86000 00000000
Sep 15 14:00:01 arun-desktop kernel: 000001d0 00000000 c015b904 0000057c c013cd5b 00000006 000001d0 cff86000
Sep 15 14:00:01 arun-desktop kernel: cff86000 00000000 cff86305 00000000 c013d023 000001d0 00000002 000001d0
Sep 15 14:00:01 arun-desktop kernel: Call Trace: [<c015b563>] prune_dcache [kernel] 0xc3 (0xcff87f90))
Sep 15 14:00:01 arun-desktop kernel: [<c015b904>] shrink_dcache_memory [kernel] 0x24 (0xcff87fac))
Sep 15 14:00:01 arun-desktop kernel: [<c013cd5b>] do_try_to_free_pages_kswapd [kernel] 0x1b (0xcff87fb4))
Sep 15 14:00:01 arun-desktop kernel: [<c013d023>] kswapd [kernel] 0x83 (0xcff87fd4))
Sep 15 14:00:01 arun-desktop kernel: [<c013cfa0>] kswapd [kernel] 0x0 (0xcff87fe4))
Sep 15 14:00:01 arun-desktop kernel: [<c010742d>] kernel_thread_helper [kernel] 0x5 (0xcff87ff0))
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: [NFS] VFS: Busy inodes after unmount on 2 way SMP
2003-09-15 21:42 ` [NFS] " Arun Sharma
@ 2003-09-15 22:25 ` H. Peter Anvin
2003-09-15 22:34 ` Arun Sharma
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: H. Peter Anvin @ 2003-09-15 22:25 UTC (permalink / raw)
To: Arun Sharma; +Cc: Ion Badulescu, autofs, nfs
Arun Sharma wrote:
>>
>> Oh yeah, easily. Kill the automounter while some things are mounted,
>> unmount everything by hand but do not rmdir the mountpoints. When you
>> unmount the autofs filesystem itself, you will get the self destruct
>> message.
>
> Thanks. This reproduces the problem I'm chasing very well. I think this
> is clearly an unacceptable kernel bug.
>
Indeed. This is on autofs 3?
-hpa
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Re: [NFS] VFS: Busy inodes after unmount on 2 way SMP
2003-09-15 22:25 ` H. Peter Anvin
@ 2003-09-15 22:34 ` Arun Sharma
2003-09-15 23:42 ` Ion Badulescu
2003-09-16 20:37 ` Arun Sharma
2 siblings, 0 replies; 7+ messages in thread
From: Arun Sharma @ 2003-09-15 22:34 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: Ion Badulescu, autofs, nfs
H. Peter Anvin wrote:
>
> Indeed. This is on autofs 3?
Yes.
-Arun
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: [NFS] VFS: Busy inodes after unmount on 2 way SMP
2003-09-15 22:25 ` H. Peter Anvin
2003-09-15 22:34 ` Arun Sharma
@ 2003-09-15 23:42 ` Ion Badulescu
2003-09-16 20:37 ` Arun Sharma
2 siblings, 0 replies; 7+ messages in thread
From: Ion Badulescu @ 2003-09-15 23:42 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: Arun Sharma, autofs, nfs
On Mon, 15 Sep 2003, H. Peter Anvin wrote:
> Arun Sharma wrote:
> >>
> >> Oh yeah, easily. Kill the automounter while some things are mounted,
> >> unmount everything by hand but do not rmdir the mountpoints. When you
> >> unmount the autofs filesystem itself, you will get the self destruct
> >> message.
> >
> > Thanks. This reproduces the problem I'm chasing very well. I think this
> > is clearly an unacceptable kernel bug.
> >
> Indeed. This is on autofs 3?
Both 3 and 4, at least as far as the "self-destruct" message goes.
Ion
--
It is better to keep your mouth shut and be thought a fool,
than to open it and remove all doubt.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Re: [NFS] VFS: Busy inodes after unmount on 2 way SMP
2003-09-15 22:25 ` H. Peter Anvin
2003-09-15 22:34 ` Arun Sharma
2003-09-15 23:42 ` Ion Badulescu
@ 2003-09-16 20:37 ` Arun Sharma
2003-09-16 20:54 ` H. Peter Anvin
2 siblings, 1 reply; 7+ messages in thread
From: Arun Sharma @ 2003-09-16 20:37 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: Ion Badulescu, autofs
H. Peter Anvin wrote:
>
> Indeed. This is on autofs 3?
>
Correction: the problem was primarily seen on autofs4. However the oops that I reported yesterday was autofs3. So the problem affects both.
-Arun
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: [NFS] VFS: Busy inodes after unmount on 2 way SMP
2003-09-16 20:37 ` Arun Sharma
@ 2003-09-16 20:54 ` H. Peter Anvin
0 siblings, 0 replies; 7+ messages in thread
From: H. Peter Anvin @ 2003-09-16 20:54 UTC (permalink / raw)
To: Arun Sharma; +Cc: Ion Badulescu, autofs
Arun Sharma wrote:
> H. Peter Anvin wrote:
>
>>
>> Indeed. This is on autofs 3?
>>
>
> Correction: the problem was primarily seen on autofs4. However the oops
> that I reported yesterday was autofs3. So the problem affects both.
>
> -Arun
Thanks. That's useful information.
-hpa
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-09-16 20:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-12 23:58 [NFS] VFS: Busy inodes after unmount on 2 way SMP Ion Badulescu
2003-09-13 0:34 ` H. Peter Anvin
-- strict thread matches above, loose matches on Subject: below --
2003-09-13 0:16 Ion Badulescu
2003-09-15 21:42 ` [NFS] " Arun Sharma
2003-09-15 22:25 ` H. Peter Anvin
2003-09-15 22:34 ` Arun Sharma
2003-09-15 23:42 ` Ion Badulescu
2003-09-16 20:37 ` Arun Sharma
2003-09-16 20:54 ` H. Peter Anvin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.