From: Kiyoshi Ueda Date: Sat, 4 Oct 2008 18:11:35 +0000 (-0400) Subject: [SCSI] export busy state via q->lld_busy_fn() X-Git-Tag: v2.6.28-rc1~11^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c5121b78ba5c70a9990e2af6cb4d6bbffe0d4d8;p=pandora-kernel.git [SCSI] export busy state via q->lld_busy_fn() This patch implements q->lld_busy_fn() for scsi mid layer to export its busy state for request stacking drivers. For efficiency, no lock is taken to check the busy state of shost/starget/sdev, since the returned value is not guaranteed and may be changed after request stacking drivers call the function, regardless of taking lock or not. When scsi can't dispatch I/Os anymore and needs to kill I/Os (e.g. !sdev), scsi needs to return 'not busy'. Otherwise, request stacking drivers may hold requests forever. Signed-off-by: Kiyoshi Ueda Signed-off-by: Jun'ichi Nomura Signed-off-by: James Bottomley --- Reading git-diff-tree failed