On Thu, 2005-08-25 at 09:40 -0400, John McCutchan wrote: > On 2.6.13-rc7 the test program fails. It always fails when a wd == 1024. > If I skip inotify_rm_watch when wd == 1024, it will fail at wd == 2048. > It seems the idr layer has an aversion to multiples of 1024. > > When I run your test program I get this a lot: I forgot to mention this -- but I just get (on -rc6): inotify_add_watch returned wd1 0 inotify_add_watch returned wd2 1 inotify_add_watch returned wd1 0 inotify_add_watch returned wd2 1 inotify_add_watch returned wd1 0 inotify_add_watch returned wd2 1 etc. IOW, they are directly reused, not even with the +1 offset you were seeing. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- Re: Inotify problem [was Re: 2.6.13-rc6-mm1]
- From: John McCutchan <[email protected]>
- Re: Inotify problem [was Re: 2.6.13-rc6-mm1]
- References:
- Inotify problem [was Re: 2.6.13-rc6-mm1]
- From: Reuben Farrelly <[email protected]>
- Re: Inotify problem [was Re: 2.6.13-rc6-mm1]
- From: Johannes Berg <[email protected]>
- Re: Inotify problem [was Re: 2.6.13-rc6-mm1]
- From: John McCutchan <[email protected]>
- Inotify problem [was Re: 2.6.13-rc6-mm1]
- Prev by Date: Re: Initramfs and TMPFS!
- Next by Date: Re: Linux-2.6.13-rc7
- Previous by thread: Re: Inotify problem [was Re: 2.6.13-rc6-mm1]
- Next by thread: Re: Inotify problem [was Re: 2.6.13-rc6-mm1]
- Index(es):