1. 14 3月, 2009 1 次提交
  2. 23 4月, 2008 1 次提交
    • F
      [SCSI] bsg: add release callback support · 97f46ae4
      FUJITA Tomonori 提交于
      This patch adds release callback support, which is called when a bsg
      device goes away. bsg_register_queue() takes a pointer to a callback
      function. This feature is useful for stuff like sas_host that can't
      use the release callback in struct device.
      
      If a caller doesn't need bsg's release callback, it can call
      bsg_register_queue() with NULL pointer (e.g. scsi devices can use
      release callback in struct device so they don't need bsg's callback).
      
      With this patch, bsg uses kref for refcounts on bsg devices instead of
      get/put_device in fops->open/release. bsg calls put_device and the
      caller's release callback (if it was registered) in kref_put's
      release.
      Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      97f46ae4
  3. 20 4月, 2008 1 次提交
  4. 31 7月, 2007 1 次提交
  5. 25 7月, 2007 1 次提交
  6. 24 7月, 2007 1 次提交
  7. 21 7月, 2007 1 次提交
    • J
      [SCSI] bsg: make class backlinks · 39dca558
      James Bottomley 提交于
      Currently, bsg doesn't make class backlinks (a process whereby you'd get
      a link to bsg in the device directory in the same way you get one for
      sg).  This is because the bsg device is uninitialised, so the class
      device has nothing it can attach to.  The fix is to make the bsg device
      point to the cdevice of the entity creating the bsg, necessitating
      changing the bsg_register_queue() prototype into a form that takes the
      generic device.
      Acked-by: NFUJITA Tomonori <tomof@acm.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      39dca558
  8. 17 7月, 2007 1 次提交
  9. 16 7月, 2007 7 次提交