Re: Fwd: Re: [linux-scsi] scsi_scan_host will hang up my system!

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

 



crazyrushstar@xxxxxxxxxxxx wrote:
I am still reading scsi_mid_low_api.txt file.

Report my newly discovery.
Trace to kernel code,function call to
"blk_execute_rq(req->q, NULL, req, 1);" at scsi_lib.c
It's too deep to trace.

This function not response to my driver so that insmod
stuck.

It looks as if you trigger a recursion in the block layer.
We've stumbled across this, too; it can happen if a driver returns
SCSI_MLQUEUE_HOST_BUSY errorneously. This can cause a really deep or
even infinite stack depth (as is triggers blk_requeue_request over and
over again).
Check for such a condition and make sure that it is _temporary_.
Otherwise use proper SCSI error codes (ie DID_NO_CONNECT) which do not
have this problem.

Cheers,

Hannes
--
Dr. Hannes Reinecke			hare@xxxxxxx
SuSE Linux Products GmbH		S390 & zSeries
Maxfeldstraße 5				+49 911 74053 688
90409 Nürnberg				http://www.suse.de
-
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