1. 03 8月, 2010 3 次提交
  2. 16 7月, 2010 3 次提交
  3. 24 6月, 2010 3 次提交
  4. 09 3月, 2010 1 次提交
  5. 04 2月, 2010 1 次提交
  6. 06 1月, 2010 1 次提交
    • A
      Input: evdev - be less aggressive about sending SIGIO notifies · 30a589fd
      Adam Jackson 提交于
      When using realtime signals, we'll enqueue one signal for every event.
      This is unfortunate, because (for example) keyboard presses are three
      events: key, msc scancode, and syn.  They'll be enqueued fast enough in
      kernel space that all three events will be ready to read by the time
      userspace runs, so the first invocation of the signal handler will read
      all three events, but then the second two invocations still have to run
      to do no work.
      
      Instead, only send the SIGIO notification on syn events.  This is a
      slight abuse of SIGIO semantics, in principle it ought to fire as soon
      as any events are readable.  But it matches evdev semantics, which is
      more important since SIGIO is rather vaguely defined to begin with.
      Signed-off-by: NAdam Jackson <ajax@redhat.com>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      30a589fd
  7. 05 10月, 2009 1 次提交
  8. 14 7月, 2009 1 次提交
  9. 20 6月, 2009 1 次提交
  10. 11 5月, 2009 1 次提交
  11. 16 3月, 2009 1 次提交
    • J
      Rationalize fasync return values · 60aa4924
      Jonathan Corbet 提交于
      Most fasync implementations do something like:
      
           return fasync_helper(...);
      
      But fasync_helper() will return a positive value at times - a feature used
      in at least one place.  Thus, a number of other drivers do:
      
           err = fasync_helper(...);
           if (err < 0)
                   return err;
           return 0;
      
      In the interests of consistency and more concise code, it makes sense to
      map positive return values onto zero where ->fasync() is called.
      
      Cc: Al Viro <viro@ZenIV.linux.org.uk>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      60aa4924
  12. 02 11月, 2008 1 次提交
    • A
      saner FASYNC handling on file close · 233e70f4
      Al Viro 提交于
      As it is, all instances of ->release() for files that have ->fasync()
      need to remember to evict file from fasync lists; forgetting that
      creates a hole and we actually have a bunch that *does* forget.
      
      So let's keep our lives simple - let __fput() check FASYNC in
      file->f_flags and call ->fasync() there if it's been set.  And lose that
      crap in ->release() instances - leaving it there is still valid, but we
      don't have to bother anymore.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      233e70f4
  13. 30 10月, 2008 1 次提交
  14. 28 10月, 2008 1 次提交
  15. 19 8月, 2008 1 次提交
  16. 09 8月, 2008 1 次提交
  17. 08 8月, 2008 1 次提交
  18. 30 6月, 2008 1 次提交
  19. 01 4月, 2008 1 次提交
  20. 31 3月, 2008 1 次提交
  21. 21 1月, 2008 1 次提交
  22. 20 10月, 2007 1 次提交
  23. 14 10月, 2007 1 次提交
  24. 13 10月, 2007 1 次提交
  25. 30 8月, 2007 1 次提交
  26. 01 8月, 2007 1 次提交
  27. 10 7月, 2007 1 次提交
  28. 04 6月, 2007 1 次提交
    • D
      Input: reduce raciness when input handlers disconnect · 1dfa2812
      Dmitry Torokhov 提交于
      There is a race between input handler's release() and disconnect()
      methods: when input handler disconnects it wakes up all regular
      users and then process to walk user list to wake up async. users.
      While disconnect() walks the list release() removes elements of
      the same list causing oopses.
      
      While this is not a substibute for proper locking we can reduce
      odds of getting an oops if we wake up normal readers after walking
      the list.
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      1dfa2812
  29. 12 5月, 2007 1 次提交
  30. 09 5月, 2007 1 次提交
  31. 03 5月, 2007 2 次提交
  32. 12 4月, 2007 2 次提交