D28327: [Inotify] Start the MoveFrom expire timer at most once per inotify batch

Stefan BrĂ¼ns noreply at phabricator.kde.org
Thu Mar 26 23:47:50 GMT 2020


bruns created this revision.
bruns added reviewers: Baloo, ngraham.
Herald added projects: Frameworks, Baloo.
Herald added a subscriber: kde-frameworks-devel.
bruns requested review of this revision.

REVISION SUMMARY
  We may get several MoveFrom/MoveTo events per read. If we are lucky,
  we get complete pairs for renames and the cookie list is empty, then
  there is no need to start the timer at all.
  
  Avoid indefinite process delays of unpaired MoveFrom events by new
  MoveFrom events. Restart the timer only if not already active, and
  process all events when a 1 second deadline has passed.

REPOSITORY
  R293 Baloo

BRANCH
  submit

REVISION DETAIL
  https://phabricator.kde.org/D28327

AFFECTED FILES
  src/file/kinotify.cpp

To: bruns, #baloo, ngraham
Cc: kde-frameworks-devel, hurikhan77, lots0logs, LeGast00n, cblack, fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200326/580d3c9c/attachment.html>


More information about the Kde-frameworks-devel mailing list