public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* idr_get_new_above not working?
@ 2005-08-15 14:16 John McCutchan
  2005-08-15 16:27 ` [patch] inotify: " Robert Love
  0 siblings, 1 reply; 3+ messages in thread
From: John McCutchan @ 2005-08-15 14:16 UTC (permalink / raw)
  To: Andrew Morton, Robert Love, linux-kernel, jim.houston

Hey,

Inotify is using idr_get_new_above to make sure that the next watch
descriptor is larger/different than any of the previous watch
descriptors. We keep track of the largest wd that we get out of
idr_get_new_above, and pass that to idr_get_new_above. I have noticed
though, that idr_get_new_above always returns the first available id.
This causes a serious problem for inotify, because user space will get a
IGNORE event for a wd K that might refer to the last holder of the K.

-- 
John McCutchan <ttb@tentacle.dhs.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-15 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-15 14:16 idr_get_new_above not working? John McCutchan
2005-08-15 16:27 ` [patch] inotify: " Robert Love
2005-08-15 16:35   ` John McCutchan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox