summaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2008-07-15 22:54:16 +0200
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-07-26 21:14:50 +0200
commit6d49f63b415ca02223e01e187076cb69a5a38eaf (patch)
tree0a55faae5505c1fb55d40e5a8c6caf69f2f215da /include/scsi
parent[SCSI] sd: update index allocation and use ida instead of idr (diff)
downloadlinux-6d49f63b415ca02223e01e187076cb69a5a38eaf.tar.xz
linux-6d49f63b415ca02223e01e187076cb69a5a38eaf.zip
[SCSI] Make host_no an unsigned int
Daniel Debonzi reports that he has managed to wrap host_no. Increasing the number of host numbers available to 32-bit from 16-bit allows the problem to be evaded for another hundred years. Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/scsi_host.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index a594bac4a77d..d3b1e06fb142 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -547,7 +547,7 @@ struct Scsi_Host {
unsigned int host_failed; /* commands that failed. */
unsigned int host_eh_scheduled; /* EH scheduled without command */
- unsigned short host_no; /* Used for IOCTL_GET_IDLUN, /proc/scsi et al. */
+ unsigned int host_no; /* Used for IOCTL_GET_IDLUN, /proc/scsi et al. */
int resetting; /* if set, it means that last_reset is a valid value */
unsigned long last_reset;