linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Deleting SCSI device on blocked rport
@ 2010-09-02 11:05 Christof Schmitt
  2010-09-05 18:07 ` Mike Christie
  0 siblings, 1 reply; 6+ messages in thread
From: Christof Schmitt @ 2010-09-02 11:05 UTC (permalink / raw)
  To: linux-scsi

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-10-06 11:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-02 11:05 Deleting SCSI device on blocked rport Christof Schmitt
2010-09-05 18:07 ` Mike Christie
2010-09-06 10:47   ` Christof Schmitt
2010-09-06 10:59     ` [PATCH] scsi: Unblock devices in state SDEV_CANCEL Christof Schmitt
2010-10-06  8:10       ` Mike Christie
2010-10-06 11:45         ` [PATCH v2] scsi: Unblock devices in SDEV_CANCEL Christof Schmitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).