1. 23 6月, 2012 1 次提交
  2. 22 6月, 2012 2 次提交
  3. 20 6月, 2012 3 次提交
    • L
      ASoC: dmaengine-pcm: Add support for querying stream position from DMA driver · 3528f27a
      Lars-Peter Clausen 提交于
      Currently the sound dmaengine pcm helper functions implement the pcm_pointer
      callback by trying to count the number of elapsed periods. This is done by
      advancing the stream position in the dmaengine callback by one period.
      Unfortunately there is no guarantee that the callback will be called for each
      elapsed period. It may be possible that under high system load it is only called
      once for multiple elapsed periods. This patch addresses the issue by
      implementing support for querying the current stream position directly from the
      dmaengine driver. Since not all dmaengine drivers support reporting the stream
      position yet the old period counting implementation is kept for now.
      
      Furthermore the new mechanism allows to report the stream position with a
      sub-period granularity, given that the dmaengine driver supports this.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Acked-by: NVinod Koul <vinod.koul@intel.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      3528f27a
    • L
      ASoC: dmaengine-pcm: Rename and deprecate snd_dmaengine_pcm_pointer · 9883ab22
      Lars-Peter Clausen 提交于
      Currently the sound dmaengine pcm helper functions implement the pcm_pointer
      callback by trying to count the number of elapsed periods. This is done by
      advancing the stream position in the dmaengine callback by one period.
      Unfortunately there is no guarantee that the callback will be called for each
      elapsed period. It may be possible that under high system load it is only called
      once for multiple elapsed periods. This patch renames the current implementation
      and documents its shortcomings and that it should not be used anymore in new
      drivers.
      
      The next patch will introduce a new snd_dmaengine_pcm_pointer which will be
      implemented based on querying the current stream position from the dma device.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Acked-by Vinod Koul <vinod.koul@linux.intel.com>
      Acked-by: Dong Aisheng <dong.aisheng@linaro.org
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      9883ab22
    • L
      dmaengine: Add wrapper for device_tx_status callback · c32c44cb
      Lars-Peter Clausen 提交于
      This patch adds a small inline wrapper for the devivce_tx_status callback of a
      dma device. This makes the source code of users of this function a bit more
      compact and a bit more legible.
      
      E.g.:
      -status = chan->device->device_tx_status(chan, cookie, &state)
      +status = dmaengine_tx_status(chan, cookie, &state)
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Acked-by Vinod Koul <vinod.koul@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      c32c44cb
  4. 13 6月, 2012 1 次提交
  5. 12 6月, 2012 1 次提交
  6. 08 6月, 2012 3 次提交
  7. 06 6月, 2012 3 次提交
  8. 05 6月, 2012 5 次提交
  9. 04 6月, 2012 4 次提交
  10. 03 6月, 2012 5 次提交
  11. 02 6月, 2012 10 次提交
    • P
      cipso: handle CIPSO options correctly when NetLabel is disabled · 20e2a864
      Paul Moore 提交于
      When NetLabel is not enabled, e.g. CONFIG_NETLABEL=n, and the system
      receives a CIPSO tagged packet it is dropped (cipso_v4_validate()
      returns non-zero).  In most cases this is the correct and desired
      behavior, however, in the case where we are simply forwarding the
      traffic, e.g. acting as a network bridge, this becomes a problem.
      
      This patch fixes the forwarding problem by providing the basic CIPSO
      validation code directly in ip_options_compile() without the need for
      the NetLabel or CIPSO code.  The new validation code can not perform
      any of the CIPSO option label/value verification that
      cipso_v4_validate() does, but it can verify the basic CIPSO option
      format.
      
      The behavior when NetLabel is enabled is unchanged.
      Signed-off-by: NPaul Moore <pmoore@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      20e2a864
    • A
      new helper: signal_delivered() · efee984c
      Al Viro 提交于
      Does block_sigmask() + tracehook_signal_handler();  called when
      sigframe has been successfully built.  All architectures converted
      to it; block_sigmask() itself is gone now (merged into this one).
      
      I'm still not too happy with the signature, but that's a separate
      story (IMO we need a structure that would contain signal number +
      siginfo + k_sigaction, so that get_signal_to_deliver() would fill one,
      signal_delivered(), handle_signal() and probably setup...frame() -
      take one).
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      efee984c
    • A
      most of set_current_blocked() callers want SIGKILL/SIGSTOP removed from set · 77097ae5
      Al Viro 提交于
      Only 3 out of 63 do not.  Renamed the current variant to __set_current_blocked(),
      added set_current_blocked() that will exclude unblockable signals, switched
      open-coded instances to it.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      77097ae5
    • A
    • A
      new helper: sigmask_to_save() · b7f9a11a
      Al Viro 提交于
      replace boilerplate "should we use ->saved_sigmask or ->blocked?"
      with calls of obvious inlined helper...
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      b7f9a11a
    • A
      new helper: restore_saved_sigmask() · 51a7b448
      Al Viro 提交于
      first fruits of ..._restore_sigmask() helpers: now we can take
      boilerplate "signal didn't have a handler, clear RESTORE_SIGMASK
      and restore the blocked mask from ->saved_mask" into a common
      helper.  Open-coded instances switched...
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      51a7b448
    • A
      new helpers: {clear,test,test_and_clear}_restore_sigmask() · 4ebefe3e
      Al Viro 提交于
      helpers parallel to set_restore_sigmask(), used in the next commits
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      4ebefe3e
    • A
      HAVE_RESTORE_SIGMASK is defined on all architectures now · 754421c8
      Al Viro 提交于
      Everyone either defines it in arch thread_info.h or has TIF_RESTORE_SIGMASK
      and picks default set_restore_sigmask() in linux/thread_info.h.  Kill the
      ifdefs, slap #error in linux/thread_info.h to catch breakage when new ones
      get merged.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      754421c8
    • M
      vfs: retry last component if opening stale dentry · 16b1c1cd
      Miklos Szeredi 提交于
      NFS optimizes away d_revalidates for last component of open.  This means that
      open itself can find the dentry stale.
      
      This patch allows the filesystem to return EOPENSTALE and the VFS will retry the
      lookup on just the last component if possible.
      
      If the lookup was done using RCU mode, including the last component, then this
      is not possible since the parent dentry is lost.  In this case fall back to
      non-RCU lookup.  Currently this is not used since NFS will always leave RCU
      mode.
      Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      16b1c1cd
    • J
      fs: introduce inode operation ->update_time · c3b2da31
      Josef Bacik 提交于
      Btrfs has to make sure we have space to allocate new blocks in order to modify
      the inode, so updating time can fail.  We've gotten around this by having our
      own file_update_time but this is kind of a pain, and Christoph has indicated he
      would like to make xfs do something different with atime updates.  So introduce
      ->update_time, where we will deal with i_version an a/m/c time updates and
      indicate which changes need to be made.  The normal version just does what it
      has always done, updates the time and marks the inode dirty, and then
      filesystems can choose to do something different.
      
      I've gone through all of the users of file_update_time and made them check for
      errors with the exception of the fault code since it's complicated and I wasn't
      quite sure what to do there, also Jan is going to be pushing the file time
      updates into page_mkwrite for those who have it so that should satisfy btrfs and
      make it not a big deal to check the file_update_time() return code in the
      generic fault path. Thanks,
      Signed-off-by: NJosef Bacik <josef@redhat.com>
      c3b2da31
  12. 01 6月, 2012 2 次提交