1. 16 3月, 2009 2 次提交
    • 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
    • J
      Use f_lock to protect f_flags · db1dd4d3
      Jonathan Corbet 提交于
      Traditionally, changes to struct file->f_flags have been done under BKL
      protection, or with no protection at all.  This patch causes all f_flags
      changes after file open/creation time to be done under protection of
      f_lock.  This allows the removal of some BKL usage and fixes a number of
      longstanding (if microscopic) races.
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Cc: Al Viro <viro@ZenIV.linux.org.uk>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      db1dd4d3
  2. 23 2月, 2009 1 次提交
  3. 18 2月, 2009 1 次提交
    • T
      ALSA: jack - Use card->shortname for input name · 2678f60d
      Takashi Iwai 提交于
      Currently the jack layer refers to card->longname as a part of
      its input device name string.  However, longname is often really long
      and way too ugly as an identifier, such as,
      "HDA Intel at 0xf8400000 irq 21".
      
      This patch changes the code to use card->shortname instead.
      The shortname string contains usually the h/w vendor and product
      names but without messy I/O port or IRQ numbers.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      2678f60d
  4. 05 2月, 2009 1 次提交
  5. 07 1月, 2009 1 次提交
  6. 18 12月, 2008 1 次提交
  7. 10 12月, 2008 1 次提交
  8. 08 12月, 2008 2 次提交
  9. 19 11月, 2008 1 次提交
  10. 13 11月, 2008 1 次提交
  11. 12 11月, 2008 1 次提交
  12. 03 11月, 2008 1 次提交
  13. 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
  14. 29 10月, 2008 2 次提交
  15. 27 10月, 2008 2 次提交
  16. 25 10月, 2008 1 次提交
  17. 21 10月, 2008 1 次提交
  18. 18 10月, 2008 1 次提交
  19. 17 10月, 2008 1 次提交
  20. 16 10月, 2008 3 次提交
  21. 10 10月, 2008 1 次提交
  22. 25 9月, 2008 2 次提交
    • T
      ALSA: remove unneeded power_mutex lock in snd_pcm_drop · 24e8fc49
      Takashi Iwai 提交于
      The power_mutex lock in snd_pcm_drop may cause a possible deadlock
      chain, and above all, it's unneeded.  Let's get rid of it.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      24e8fc49
    • T
      ALSA: fix locking in snd_pcm_open*() and snd_rawmidi_open*() · 399ccdc1
      Takashi Iwai 提交于
      The PCM and rawmidi open callbacks have a lock against card->controls_list
      but it takes a wrong one, card->controls_rwsem, instead of a right one
      card->ctl_files_rwlock.  This patch fixes them.
      
      This change also fixes automatically the potential deadlocks due to
      mm->mmap_sem in munmap and copy_from/to_user, reported by Sitsofe
      Wheeler:
      
        A: snd_ctl_elem_user_tlv(): card->controls_rwsem => mm->mmap_sem
        B: snd_pcm_open(): card->open_mutex => card->controls_rwsem
        C: munmap: mm->mmap_sem => snd_pcm_release(): card->open_mutex
      
      The patch breaks the chain.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      399ccdc1
  23. 09 9月, 2008 1 次提交
  24. 04 9月, 2008 1 次提交
  25. 29 8月, 2008 4 次提交
  26. 25 8月, 2008 3 次提交
  27. 15 8月, 2008 1 次提交
  28. 13 8月, 2008 1 次提交