1. 03 3月, 2010 1 次提交
  2. 26 2月, 2010 1 次提交
  3. 19 1月, 2010 1 次提交
  4. 05 12月, 2009 7 次提交
  5. 20 9月, 2009 1 次提交
  6. 23 8月, 2009 1 次提交
  7. 26 6月, 2009 1 次提交
  8. 22 6月, 2009 2 次提交
  9. 16 6月, 2009 1 次提交
    • G
      ibmvscsi: gadget: at91_udc: remove driver_data direct access of struct device · 559fde70
      Greg Kroah-Hartman 提交于
      In the near future, the driver core is going to not allow direct access
      to the driver_data pointer in struct device.  Instead, the functions
      dev_get_drvdata() and dev_set_drvdata() should be used.  These functions
      have been around since the beginning, so are backwards compatible with
      all older kernel versions.
      
      Cc: linux-scsi@vger.kernel.org
      Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
      Cc: Brian King <brking@linux.vnet.ibm.com>
      Cc: Robert Jennings <rcj@linux.vnet.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      559fde70
  10. 09 6月, 2009 15 次提交
    • B
      [SCSI] ibmvscsi: Add support for capabilities MAD · 126c5cc3
      Brian King 提交于
      Add support to ibmvscsi for the capabilities MAD. This command gets sent
      to the Virtual I/O server prior to login in order to communicate client
      capabilities. Additionally it returns information regarding capabilities
      that the server supports. The two main capabilities communicated in this
      MAD are related to partition migration and client reserve. Client reserve
      allows for SCSI-2 reservations to be sent to virtual disks which are backed
      by physical LUNs and will result in the reservation being sent to the
      physical LUN.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      126c5cc3
    • R
      [SCSI] ibmvscsi: Enable fast fail feature · c1988e31
      Robert Jennings 提交于
      A new mode of error reporting, fast fail, has been added to the VIOS
      which allows failover to happen more quickly.
      
      If this new fast fail mode is enabled on the VIOS and the vSCSI client
      supports the mode, the VIOS will not return MEDIUM error on path failures,
      but rather return VIOSRP_ADAPTER_FAIL in the crq response, which
      ibmvscsi will translate to DID_ERROR.
      
      This new mode can be enabled for single path configurations as well,
      so it is the new default error reporting mode. A module parameter is
      provided to disable this new behavior on the off chance it causes a
      problem on some old VIOS version.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      c1988e31
    • B
      [SCSI] ibmvscsi: Send adapter info before login · 3507e13f
      Brian King 提交于
      The ibmvscsi driver currently sends the SRP Login before sending the Adapter
      Info MAD, which can result in commands getting sent to the virtual adapter
      before we are ready for them. This results in a slight window where the target
      devices may not behave as expected. Change the order and close the window.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      3507e13f
    • R
      [SCSI] ibmvscsi: Add specific timeouts for operations · e1a5ce5b
      Robert Jennings 提交于
      Previously we had one timeout that was used for all types of operations.
      This adds specific timeout values for different operations (init, login,
      adapter info MAD, abort task, and LUN reset).
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      e1a5ce5b
    • B
      [SCSI] ibmvscsi: Add 16 byte CDB support · fbc56f08
      Brian King 提交于
      Adds support for 16 byte CDBs to the ibmvscsi driver.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      fbc56f08
    • B
      [SCSI] ibmvfc: Driver version 1.0.6 · cbbf58f2
      Brian King 提交于
      Bump driver version
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      cbbf58f2
    • B
      [SCSI] ibmvfc: Improve LOGO/PRLO ELS handling · 6d29cc56
      Brian King 提交于
      There are several scenarios where the ibmvfc driver needs to
      try to log back into a target on the fabric. Today when these events
      occur, we simply go through re-discovery for all attached targets,
      assuming that either the query of the name server or an ADISC will
      indicate we might need to log back into the target, which doesn't
      work for all scenarios. Fix this by taking note of the affected target(s)
      in these conditions and ensuring we try to PLOGI back into the target.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      6d29cc56
    • B
      [SCSI] ibmvfc: Improve device rediscovery · 5e47167b
      Brian King 提交于
      For certain scenarios during device rediscovery, we detect we need
      to log back into a target. Currently we do just that - PLOGI/PRLI
      back into the target. Change the code to delete and add the target
      from the FC transport layer as well, to ensure we handle any cases
      where the target may have changed.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      5e47167b
    • B
      [SCSI] ibmvfc: Add flush on halt support · 497f9c50
      Brian King 提交于
      The virtual I/O server controlling the NPIV adapter associated with
      a virtual fibre channel adapter can send a HALT event to the client.
      When this occurs, the client can no longer send commands until a RESUME
      is received. By adding support for flush on halt, we will get all of
      our outstanding commands flushed back before the Virtual I/O server
      enters the halt state, eliminating potential command timeouts for
      outstanding commands which might occur if we did not support this feature.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      497f9c50
    • B
      [SCSI] ibmvfc: Add support for NPIV Logout · 79111d08
      Brian King 提交于
      This patch adds support for a new command supported by the Virtual I/O
      Server, NPIV Logout. The command will abort all outstanding commands
      and log out of the fabric. Currently, the only way to do this is
      by breaking the CRQ, which can take a fairly long time when lots of
      commands are outstanding. The NPIV Logout commands provides a mechanism
      to accomplish virtually the same function, but is much faster.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      79111d08
    • B
      [SCSI] ibmvfc: Fix deadlock in EH · 43c8da90
      Brian King 提交于
      Fixes the following deadlock scenario shown below. We currently allow
      queuecommand to send commands when the ibmvfc workqueue is scanning for
      new rports, so we should also allow EH to function at this time as well.
      
      scsi_eh_3     D 0000000000000000 12304  1279      2
      Call Trace:
      [c0000002f7257730] [c0000002f72577e0] 0xc0000002f72577e0 (unreliable)
      [c0000002f7257900] [c0000000000118f4] .__switch_to+0x158/0x1a0
      [c0000002f72579a0] [c0000000004f8b40] .schedule+0x8d4/0x9dc
      [c0000002f7257b60] [c0000000004f8f08] .schedule_timeout+0xa8/0xe8
      [c0000002f7257c50] [d0000000001d23e0] .ibmvfc_wait_while_resetting+0xe4/0x140 [ibmvfc]
      [c0000002f7257d20] [d0000000001d3984] .ibmvfc_eh_abort_handler+0x60/0xe4 [ibmvfc]
      [c0000002f7257dc0] [d000000000366714] .scsi_error_handler+0x38c/0x674 [scsi_mod]
      [c0000002f7257f00] [c0000000000a7470] .kthread+0x78/0xc4
      [c0000002f7257f90] [c000000000029b8c] .kernel_thread+0x4c/0x68
      ibmvfc_3      D 0000000000000000 12432  1280      2
      Call Trace:
      [c0000002f7253540] [c0000002f72535f0] 0xc0000002f72535f0 (unreliable)
      [c0000002f7253710] [c0000000000118f4] .__switch_to+0x158/0x1a0
      [c0000002f72537b0] [c0000000004f8b40] .schedule+0x8d4/0x9dc
      [c0000002f7253970] [c0000000004f8e98] .schedule_timeout+0x38/0xe8
      [c0000002f7253a60] [c0000000004f80cc] .wait_for_common+0x138/0x220
      [c0000002f7253b40] [c0000000000a2784] .flush_cpu_workqueue+0xac/0xcc
      [c0000002f7253c10] [c0000000000a2960] .flush_workqueue+0x58/0xa0
      [c0000002f7253ca0] [d0000000000827fc] .fc_flush_work+0x4c/0x64 [scsi_transport_fc]
      [c0000002f7253d20] [d000000000082db4] .fc_remote_port_add+0x48/0x6c4 [scsi_transport_fc]
      [c0000002f7253dd0] [d0000000001d7d04] .ibmvfc_work+0x820/0xa7c [ibmvfc]
      [c0000002f7253f00] [c0000000000a7470] .kthread+0x78/0xc4
      [c0000002f7253f90] [c000000000029b8c] .kernel_thread+0x4c/0x68
      fc_wq_3       D 0000000000000000 10720  1283      2
      Call Trace:
      [c0000002f559ac30] [c0000002f559ace0] 0xc0000002f559ace0 (unreliable)
      [c0000002f559ae00] [c0000000000118f4] .__switch_to+0x158/0x1a0
      [c0000002f559aea0] [c0000000004f8b40] .schedule+0x8d4/0x9dc
      [c0000002f559b060] [c0000000004f8e98] .schedule_timeout+0x38/0xe8
      [c0000002f559b150] [c0000000004f80cc] .wait_for_common+0x138/0x220
      [c0000002f559b230] [c0000000002721c4] .blk_execute_rq+0xb4/0x100
      [c0000002f559b360] [d00000000036a1f8] .scsi_execute+0x118/0x194 [scsi_mod]
      [c0000002f559b420] [d00000000036a32c] .scsi_execute_req+0xb8/0x124 [scsi_mod]
      [c0000002f559b500] [d0000000000c1330] .sd_sync_cache+0x8c/0x108 [sd_mod]
      [c0000002f559b5e0] [d0000000000c15b4] .sd_shutdown+0x9c/0x158 [sd_mod]
      [c0000002f559b660] [d0000000000c16d0] .sd_remove+0x60/0xb4 [sd_mod]
      [c0000002f559b700] [c000000000392ecc] .__device_release_driver+0xd0/0x118
      [c0000002f559b7a0] [c000000000393080] .device_release_driver+0x30/0x54
      [c0000002f559b830] [c000000000392108] .bus_remove_device+0x128/0x16c
      [c0000002f559b8d0] [c00000000038f94c] .device_del+0x158/0x234
      [c0000002f559b960] [d00000000036f078] .__scsi_remove_device+0x5c/0xd4 [scsi_mod]
      [c0000002f559b9f0] [d00000000036f124] .scsi_remove_device+0x34/0x58 [scsi_mod]
      [c0000002f559ba80] [d00000000036f204] .__scsi_remove_target+0xb4/0x120 [scsi_mod]
      [c0000002f559bb10] [d00000000036f338] .__remove_child+0x2c/0x44 [scsi_mod]
      [c0000002f559bb90] [c00000000038f11c] .device_for_each_child+0x54/0xb4
      [c0000002f559bc50] [d00000000036f2e0] .scsi_remove_target+0x70/0x9c [scsi_mod]
      [c0000002f559bce0] [d000000000083454] .fc_starget_delete+0x24/0x3c [scsi_transport_fc]
      [c0000002f559bd70] [c0000000000a2368] .run_workqueue+0x118/0x208
      [c0000002f559be30] [c0000000000a2580] .worker_thread+0x128/0x154
      [c0000002f559bf00] [c0000000000a7470] .kthread+0x78/0xc4
      [c0000002f559bf90] [c000000000029b8c] .kernel_thread+0x4c/0x68
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      43c8da90
    • B
      [SCSI] ibmvfc: Reduce error logging noise · 7d0e4622
      Brian King 提交于
      The ibmvfc driver currently logs errors during discovery for several
      transient fabric errors, which generally get retried. If retries
      do not work, we see multiple errors in the log. If retries do work,
      we see errors in the log which may be confusing since the retry worked.
      This patch enhances the discovery time error logging to only log errors
      for command failures during discovery if all allowed retries have been
      used up. The existing behavior of logging all failures can be restored
      by setting the hosts log_level to a value of 3 or greater.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      7d0e4622
    • B
      [SCSI] ibmvfc: Use DEVICE_ATTR macro · 85e2399e
      Brian King 提交于
      Use DEVICE_ATTR macro for defining device sysfs attributes.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      85e2399e
    • B
      [SCSI] ibmvfc: Fixup GFP flags for target allocations · 7270b9bd
      Brian King 提交于
      Since target allocations can occur while resetting the virtual adapter,
      we shouldn't be using GFP_KERNEL for them as it could hang. Switch to
      use GFP_NOIO.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      7270b9bd
    • B
      [SCSI] ibmvfc: Fix invalid error response handling · 4a2837d4
      Brian King 提交于
      Fix an obvious bug in processing error responses for SCSI commands
      which can result in successful responses being incorrectly returned
      with DID_ERROR.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      4a2837d4
  11. 24 5月, 2009 1 次提交
  12. 03 4月, 2009 5 次提交
  13. 13 3月, 2009 1 次提交
  14. 11 2月, 2009 2 次提交