inotify: rewrite inotify-kernel
authorRyan Lortie <desrt@desrt.ca>
Fri, 6 Mar 2015 02:28:29 +0000 (21:28 -0500)
committerRyan Lortie <desrt@desrt.ca>
Fri, 20 Mar 2015 15:58:42 +0000 (11:58 -0400)
commit779c809a3d07fca6c1da4f87d4ce6cf7f2d95608
treecc027f7c874a190e987ebb7aadb8d3967062c95d
parentfd8b45eb6785831d4a3749b31724de6eea74de1a
inotify: rewrite inotify-kernel

Remove the hardwired 1 second event queue logic from inotify-kernel and
replace it with something vastly less complicated.

Events are now reported as soon as is possible instead of after a
delay.

We still must delay IN_MOVED_FROM events in order to look for the
matching IN_MOVED_TO events, and since we want to report events in order
this means that events behind those events can also be delayed.  We
limit ourselves, however:

 - no more than 100 events can be delayed at a time

 - no event can be delayed by more than 10ms

https://bugzilla.gnome.org/show_bug.cgi?id=627285
gio/inotify/inotify-kernel.c
gio/inotify/inotify-kernel.h