Deleting SCSI device on blocked rport

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Deleting a SCSI device on a rport in the state FC_PORTSTATE_BLOCKED,
but before the fast_io_fail_tmo expires results in a hanging kernel
thread:

STACK TRACE FOR TASK: 0x2a368b38 (sysfsd)

 STACK:
 0 schedule+1108 [0x5cac48]
 1 schedule_timeout+528 [0x5cb7fc]
 2 wait_for_common+266 [0x5ca6be]
 3 blk_execute_rq+160 [0x354054]
 4 scsi_execute+324 [0x3b7ef4]
 5 scsi_execute_req+162 [0x3b80ca]
 6 sd_sync_cache+138 [0x3cf662]
 7 sd_shutdown+138 [0x3cf91a]
 8 sd_remove+112 [0x3cfe4c]
 9 __device_release_driver+124 [0x3a08b8]
10 device_release_driver+60 [0x3a0a5c]
11 bus_remove_device+266 [0x39fa76]
12 device_del+340 [0x39d818]
13 __scsi_remove_device+204 [0x3bcc48]
14 scsi_remove_device+66 [0x3bcc8e]
15 sysfs_schedule_callback_work+50 [0x260d66]
16 worker_thread+622 [0x162326]
17 kthread+160 [0x1680b0]
18 kernel_thread_starter+6 [0x10aaea]

When the fast_io_fail_tmo or dev_loss_tmo expire, this does not
change, so this has the potential of blocking the entire system.

The request queue seems to be STOPPED at the moment.
        queue_flags = 0xa805

I am not sure how to approach this. One idea would be that the unblock
in fc_terminate_rport_io should also trigger the release of the
pending command, but it does not seem to happen.

The above stack trace is from 2.6.35, but the same also happens with
2.6.36-rc3, only the kernel threads kworker/u are affected.

--
Christof
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux