[SCSI] refactor sdev/starget/shost busy checking
commit9d11251709f31d49c8167a619d4475fdf6cd7f73
authorKiyoshi Ueda <k-ueda@ct.jp.nec.com>
Sat, 4 Oct 2008 18:11:06 +0000 (4 14:11 -0400)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 23 Oct 2008 16:42:16 +0000 (23 11:42 -0500)
tree0658cf513d86730d785b94eb2dd469ac4d0a51b0
parent22ab019b6ff8f3f93ddc93135d7e7ff24d982fe0
[SCSI] refactor sdev/starget/shost busy checking

This patch refactors the busy checking codes of scsi_device,
Scsi_Host and scsi_target.  There should be no functional change.

This is a preparation for another patch which exports scsi's busy
state to the block layer for request stacking drivers.

Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_lib.c