Staging
v0.5.1
https://github.com/torvalds/linux
Revision b9c55d29e9fced1eb1b4c252b2efd4b55a0c3c7f authored by John McCutchan on 01 August 2005, 15:00:45 UTC, committed by Linus Torvalds on 01 August 2005, 16:16:53 UTC
When you rm a watch, an IN_IGNORED event is sent down the event queue
with the watch descriptor that you just rm'd.

If you then add a watch you could get the ignored watch's wd and if you
haven't read the entire event queue, user space will think that it's
newly created watch was just ignored.

To avoid this problem we just use idr_get_new_above instead of
idr_get_new.

Signed-off-by: John McCutchan <ttb@tentacle.dhs.org>
Signed-off-by: Robert Love <rml@novell.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 7544953
History
Tip revision: b9c55d29e9fced1eb1b4c252b2efd4b55a0c3c7f authored by John McCutchan on 01 August 2005, 15:00:45 UTC
[PATCH] inotify: fix race between the kernel and user space
Tip revision: b9c55d2

README

back to top