Skip to content
Snippets Groups Projects
  1. Jan 21, 2013
  2. Jan 19, 2013
  3. Jan 18, 2013
  4. Jan 17, 2013
  5. Jan 10, 2013
    • Alessandro Rubini's avatar
      bugfix for buffer change (long standing race condition) · 2672b21a
      Alessandro Rubini authored
      
      When the current buffer is changed, there should be no
      users on the channels (otherwise, either a user block
      is being produced/consumed or there's somebody sleeping
      on the wq of the buffer instance).
      
      This prevents changing the buffer if in use, and prevents
      users from opening a channel if the buffer is being changed.
      We use the "disabled" flag for the buffer, not used so far.
      
      We noticed this while working on buffer changes (see previous
      commit). I'm unable to backport this to the proper place in the
      history because it relies on the new locking introduced by this branch.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      Acked-by: default avatarFederico Vaga <federico.vaga@gmail.com>
      2672b21a
  6. Nov 25, 2012
  7. Nov 24, 2012
  8. Nov 09, 2012
  9. Nov 05, 2012
  10. Apr 06, 2012
    • Federico Vaga's avatar
      core: ZIO is now based on the bus abstraction · b0b0d428
      Federico Vaga authored
      
      This patch introduces zio_driver and zio_device_id structure,
      which are used to define a zio's driver. ZIO uses these
      structures to handle the match between devices and drivers
      connected on the zio bus.
      
      To make ZIO work on the Linux bus mechanism, ZIO creates two
      zio_device structures. The first zio_device is allocated and it is
      registered by the module which wants to declare the existence
      of a new ZIO device. This first zio_device is only used by
      ZIO to match the device with a driver. When the first zio
      device matchs with a driver, ZIO creates a new zio device child
      of the first one. The new device is filled with all the device
      information and sysfs attributes. This second zio device
      represents the real device to use; ZIO passes this zio device
      as argument to the driver probe function, so the driver can
      use the real zio device for its operations.
      From the user space point of view, both ZIO devices are
      available at /sys/bus/zio/devices/; the first zio device has
      the prefix "hwdev-", the second zio device (the real one) has
      the prefix "zio-"
      
      Signed-off-by: default avatarFederico Vaga <federico.vaga@gmail.com>
      Acked-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      b0b0d428
  11. Mar 15, 2012
  12. Feb 10, 2012
  13. Feb 02, 2012
  14. Feb 01, 2012
  15. Jan 31, 2012
  16. Nov 25, 2011
  17. Nov 22, 2011
  18. Nov 20, 2011
  19. Nov 15, 2011
  20. Nov 04, 2011