1. 07 1月, 2012 1 次提交
    • J
      PCI: Rework config space blocking services · fb51ccbf
      Jan Kiszka 提交于
      pci_block_user_cfg_access was designed for the use case that a single
      context, the IPR driver, temporarily delays user space accesses to the
      config space via sysfs. This assumption became invalid by the time
      pci_dev_reset was added as locking instance. Today, if you run two loops
      in parallel that reset the same device via sysfs, you end up with a
      kernel BUG as pci_block_user_cfg_access detect the broken assumption.
      
      This reworks the pci_block_user_cfg_access to a sleeping service
      pci_cfg_access_lock and an atomic-compatible variant called
      pci_cfg_access_trylock. The former not only blocks user space access as
      before but also waits if access was already locked. The latter service
      just returns false in this case, allowing the caller to resolve the
      conflict instead of raising a BUG.
      
      Adaptions of the ipr driver were originally written by Brian King.
      Acked-by: NBrian King <brking@linux.vnet.ibm.com>
      Acked-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      fb51ccbf
  2. 31 10月, 2011 1 次提交
  3. 20 10月, 2011 1 次提交
    • B
      [SCSI] ipr: Fix BUG on adapter dump timeout · 4c647e90
      Brian King 提交于
      If an adapter dump times out, the ipr driver will abort the
      dump and proceed to reset and recover the adapter. When an
      adapter dump completes, the work thread which is reading the
      adapter dump will initiate an adapter reset to recover the
      adapter. However, when the adapter dump gets aborted, the
      work thread should not initiate an adapter reset, since an
      adapter reset is already in progress. This fixes a case of
      calling pci_block_user_cfg_access overlapped, which results
      in a BUG.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      4c647e90
  4. 16 10月, 2011 1 次提交
  5. 22 9月, 2011 1 次提交
    • B
      [SCSI] ipr: Stop reading adapter dump prematurely · 41e9a696
      Brian King 提交于
      When the ipr driver decides to dump the adapter, it changes the
      sdt_state to GET_DUMP, then prepares the adapter so that the dump
      can be read. However, if the ipr worker thread wakes up for some
      reason before the driver has put the adapter in a state where it
      can succesfully dump the adapter, the driver will start dumping
      the adapter too early, which can potentially trigger a BUG check
      in the pci config blocking API. Fix this by adding a new
      sdt_state to differentiate between the ipr driver wanting to dump
      the adapter in the near future and wanting to dump the adapter now.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      41e9a696
  6. 02 5月, 2011 2 次提交
  7. 01 5月, 2011 1 次提交
  8. 22 12月, 2010 1 次提交
  9. 26 10月, 2010 1 次提交
  10. 08 10月, 2010 1 次提交
  11. 06 9月, 2010 2 次提交
  12. 28 7月, 2010 5 次提交
  13. 22 7月, 2010 1 次提交
  14. 25 5月, 2010 3 次提交
  15. 03 3月, 2010 7 次提交
  16. 07 11月, 2009 1 次提交
  17. 23 8月, 2009 1 次提交
  18. 21 6月, 2009 2 次提交
  19. 13 3月, 2009 1 次提交
  20. 03 1月, 2009 1 次提交
  21. 30 12月, 2008 1 次提交
  22. 27 7月, 2008 1 次提交
  23. 09 5月, 2007 1 次提交
  24. 06 5月, 2007 2 次提交