Hi Bart, 


On 2/8/17, 7:02 AM, "Bart Van Assche" <bart.vanass...@sandisk.com> wrote:

>On Fri, 2017-02-03 at 14:40 -0800, Himanshu Madhani wrote:
>> Please consider this series for inclusion in target-pending.
>
>Hello Himanshu,
>
>I gave this patch series a try on a system equipped with two QLogic FC HBAs
>where an FC cable connects both HBAs to each other. qlini_mode has been set
>to "dual" such that both ports support initiator and target mode. Without this
>patch series both ports log in to each other and lsscsi shows several LUNs.
>With this patch series applied the two ports do not log in to each other
>anymore and strange messages appear in the kernel log:
>
>------------[ cut here ]------------
>WARNING: CPU: 0 PID: 5 at lib/kobject.c:244 kobject_add_internal+0x118/0x350
>kobject_add_internal failed for 3:0:0:0 (error: -2 parent: target3:0:0)
>Modules linked in: target_core_pscsi target_core_iblock target_core_file 
>tcm_qla2xxx target_core_mod fcoe libfcoe libfc qla2xxx scsi_transport_fc 
>netconsole af_packet hid_generic usbhid hid sg virtio_balloon i2c_piix4 
>acpi_cpufreq button ib_iser rdma_cm iw_cm ib_cm ib_core configfs iscsi_tcp 
>libiscsi_tcp libiscsi scsi_transport_iscsi autofs4 ext4 crc16 jbd2 mbcache 
>sr_mod cdrom ata_generic pata_acpi virtio_net virtio_blk virtio_gpu 
>drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm i2c_core 
>ata_piix xhci_pci libata xhci_hcd intel_agp usbcore intel_gtt virtio_pci 
>scsi_mod virtio_ring usb_common agpgart virtio
>CPU: 0 PID: 5 Comm: kworker/u16:0 Not tainted 4.10.0-rc6-dbg+ #1
>Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
>Workqueue: scsi_wq_3 fc_scsi_scan_rport [scsi_transport_fc]
>Call Trace:
> dump_stack+0x85/0xc2
> __warn+0xcb/0xf0
> warn_slowpath_fmt+0x4f/0x60
> kobject_add_internal+0x118/0x350
> kobject_add+0x68/0xb0
> device_add+0xfa/0x600
> scsi_sysfs_add_sdev+0x8e/0x270 [scsi_mod]
> scsi_probe_and_add_lun+0xca1/0xe30 [scsi_mod]
> __scsi_scan_target+0xd3/0x5f0 [scsi_mod]
> scsi_scan_target+0xf1/0x100 [scsi_mod]
> fc_scsi_scan_rport+0xc0/0xd0 [scsi_transport_fc]
> process_one_work+0x1f4/0x6e0
> worker_thread+0x4e/0x4a0
> kthread+0x10c/0x140
> ret_from_fork+0x31/0x40
>---[ end trace 86f40b52873f9529 ]---
>scsi 3:0:0:0: failed to add device: -2

I’ll try to reproduce this. We have not see this issue in our testing and post 
update. 

Thanks,
Himanshu

>
>Bart.
>Western Digital Corporation (and its subsidiaries) E-mail Confidentiality 
>Notice & Disclaimer:
>
>This e-mail and any files transmitted with it may contain confidential or 
>legally privileged information of WDC and/or its affiliates, and are intended 
>solely for the use of the individual or entity to which they are addressed. If 
>you are not the intended recipient, any disclosure, copying, distribution or 
>any action taken or omitted to be taken in reliance on it, is prohibited. If 
>you have received this e-mail in error, please notify the sender immediately 
>and delete the e-mail in its entirety from your system.

Reply via email to