1. 05 9月, 2013 2 次提交
  2. 10 7月, 2013 3 次提交
  3. 28 6月, 2013 1 次提交
  4. 11 5月, 2013 2 次提交
    • N
      libfc: extend ex_lock to protect all of fc_seq_send · fb00cc23
      Neil Horman 提交于
      This warning was reported recently:
      
      WARNING: at drivers/scsi/libfc/fc_exch.c:478 fc_seq_send+0x14f/0x160 [libfc]()
      (Not tainted)
      Hardware name: ProLiant DL120 G7
      Modules linked in: tcm_fc target_core_iblock target_core_file target_core_pscsi
      target_core_mod configfs dm_round_robin dm_multipath 8021q garp stp llc bnx2fc
      cnic uio fcoe libfcoe libfc scsi_transport_fc scsi_tgt autofs4 sunrpc
      pcc_cpufreq ipv6 hpilo hpwdt e1000e microcode iTCO_wdt iTCO_vendor_support
      serio_raw shpchp ixgbe dca mdio sg ext4 mbcache jbd2 sd_mod crc_t10dif pata_acpi
      ata_generic ata_piix hpsa dm_mirror dm_region_hash dm_log dm_mod [last unloaded:
      scsi_wait_scan]
      Pid: 5464, comm: target_completi Not tainted 2.6.32-272.el6.x86_64 #1
      Call Trace:
       [<ffffffff8106b747>] ? warn_slowpath_common+0x87/0xc0
       [<ffffffff8106b79a>] ? warn_slowpath_null+0x1a/0x20
       [<ffffffffa025f7df>] ? fc_seq_send+0x14f/0x160 [libfc]
       [<ffffffffa035cbce>] ? ft_queue_status+0x16e/0x210 [tcm_fc]
       [<ffffffffa030a660>] ? target_complete_ok_work+0x0/0x4b0 [target_core_mod]
       [<ffffffffa030a766>] ? target_complete_ok_work+0x106/0x4b0 [target_core_mod]
       [<ffffffffa030a660>] ? target_complete_ok_work+0x0/0x4b0 [target_core_mod]
       [<ffffffff8108c760>] ? worker_thread+0x170/0x2a0
       [<ffffffff810920d0>] ? autoremove_wake_function+0x0/0x40
       [<ffffffff8108c5f0>] ? worker_thread+0x0/0x2a0
       [<ffffffff81091d66>] ? kthread+0x96/0xa0
       [<ffffffff8100c14a>] ? child_rip+0xa/0x20
       [<ffffffff81091cd0>] ? kthread+0x0/0xa0
       [<ffffffff8100c140>] ? child_rip+0x0/0x20
      
      It occurs because fc_seq_send can have multiple contexts executing within it at
      the same time, and fc_seq_send doesn't consistently use the ep->ex_lock that
      protects this structure.  Because of that, its possible for one context to clear
      the INIT bit in the ep->esb_state field while another checks it, leading to the
      above stack trace generated by the WARN_ON in the function.
      
      We should probably undertake the effort to convert access to the fc_exch
      structures to use rcu, but that a larger work item.  To just fix this specific
      issue, we can just extend the ex_lock protection through the entire fc_seq_send
      path
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      Reported-by: NGris Ge <fge@redhat.com>
      CC: Robert Love <robert.w.love@intel.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      fb00cc23
    • M
      libfc: Correct check for initiator role · 732bdb9d
      Mark Rustad 提交于
      The service_params field is being checked against the symbol
      FC_RPORT_ROLE_FCP_INITIATOR where it really should be checked
      against FCP_SPPF_INIT_FCN.
      Signed-off-by: NMark Rustad <mark.d.rustad@intel.com>
      Tested-by: NJack Morgan <jack.morgan@intel.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      732bdb9d
  5. 26 3月, 2013 2 次提交
  6. 16 2月, 2013 1 次提交
  7. 15 12月, 2012 1 次提交
  8. 05 12月, 2012 1 次提交
    • V
      libfc: fix REC handling · 5b97fabd
      Vasu Dev 提交于
      Currently fc_fcp_timeout doesn't check FC_RP_FLAGS_REC_SUPPORTED
      flag first, this prevents REC request ever going out at all
      to the target having REC support. So this patches fixes the
      fc_fcp_timeout by checking FC_RP_FLAGS_REC_SUPPORTED flag first.
      
      The changed order won't cause any issue during clearing
      FC_RP_FLAGS_REC_SUPPORTED on failed IO with target not supporting
      FC_RP_FLAGS_REC_SUPPORTED, since retry on failed IO would succeed.
      Signed-off-by: NVasu Dev <vasu.dev@intel.com>
      Tested-by: NRoss Brattain <ross.b.brattain@intel.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      5b97fabd
  9. 07 10月, 2012 1 次提交
  10. 20 7月, 2012 7 次提交
  11. 10 5月, 2012 1 次提交
    • V
      [SCSI] libfc: flush lport worker after its disabled · 061446a1
      Vasu Dev 提交于
      The lport could get timeout armed while its getting disabled,
      so flush lport worker after its disabled and ignore lport
      retry in that case instead of WARN_ON.
      
       [13192.936858] WARNING: at drivers/scsi/libfc/fc_lport.c:1573 fc_lport_timeout+0x53/0xa9 [libfc]()
       [13192.938026] Hardware name: Bochs
       [13192.938620] Modules linked in: fcoe libfcoe libfc scsi_transport_fc scsi_tgt fuse 8021q garp stp llc sunrpc ipv6 uinput microcode joydev pcspkr ixgbe e1000 i2c_piix4 i2c_core virtio_balloon dca mdio virtio_blk virtio_pci virtio_ring virtio floppy [last unloaded: speedstep_lib]
       [13192.942589] Pid: 23605, comm: kworker/0:6 Tainted: G        W    3.2.0+ #71
       [13192.943587] Call Trace:
       [13192.944052]  [<ffffffff810403f4>] warn_slowpath_common+0x85/0x9d
       [13192.944940]  [<ffffffff81040426>] warn_slowpath_null+0x1a/0x1c
       [13192.945734]  [<ffffffffa02746eb>] fc_lport_timeout+0x53/0xa9 [libfc]
       [13192.946665]  [<ffffffff81058d88>] process_one_work+0x20c/0x3ad
       [13192.947541]  [<ffffffff81058cbe>] ? process_one_work+0x142/0x3ad
       [13192.948423]  [<ffffffffa0274698>] ? fc_lport_enter_ns+0x178/0x178 [libfc]
       [13192.949363]  [<ffffffff8105a313>] worker_thread+0xfd/0x181
       [13192.950191]  [<ffffffff8105a216>] ? manage_workers.clone.15+0x173/0x173
       [13192.951100]  [<ffffffff8105e19b>] kthread+0xa4/0xac
       [13192.951755]  [<ffffffff814edbb4>] kernel_thread_helper+0x4/0x10
       [13192.952520]  [<ffffffff814e5cb4>] ? retint_restore_args+0x13/0x13
       [13192.953398]  [<ffffffff8105e0f7>] ? __init_kthread_worker+0x5b/0x5b
       [13192.954278]  [<ffffffff814edbb0>] ? gs_change+0x13/0x13
       [13192.954911] ---[ end trace 9763213b95bbd803 ]---
      Signed-off-by: NVasu Dev <vasu.dev@intel.com>
      Acked-by: NNeil Horman <nhorman@tuxdriver.com>
      Tested-by: NRoss Brattain <ross.b.brattain@intel.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      061446a1
  12. 25 4月, 2012 1 次提交
  13. 28 3月, 2012 2 次提交
  14. 20 3月, 2012 1 次提交
  15. 26 2月, 2012 1 次提交
  16. 19 2月, 2012 4 次提交
  17. 16 1月, 2012 2 次提交
  18. 01 11月, 2011 2 次提交
  19. 31 10月, 2011 3 次提交
  20. 03 10月, 2011 2 次提交