X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fscsi%2Fscsi_scan.c;h=166cb9ab33f13dd4dc73e581893790eaa1a14783;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=699d274b609e1b1721091d5c733116b410cefe6f;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 699d274b6..166cb9ab3 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c @@ -32,11 +32,13 @@ #include #include +#include +#include #include #include #include +#include #include -#include "scsi.h" #include "scsi_priv.h" #include "scsi_logging.h" @@ -44,6 +46,11 @@ #define ALLOC_FAILURE_MSG KERN_ERR "%s: Allocation failure during" \ " SCSI scanning, some SCSI devices might not be configured\n" +/* + * Default timeout + */ +#define SCSI_TIMEOUT (2*HZ) + /* * Prefix values for the SCSI id's (stored in driverfs name field) */ @@ -656,6 +663,9 @@ static int scsi_add_lun(struct scsi_device *sdev, char *inq_result, int *bflags) if (*bflags & BLIST_MS_192_BYTES_FOR_3F) sdev->use_192_bytes_for_3f = 1; + if (*bflags & BLIST_NOT_LOCKABLE) + sdev->lockable = 0; + if(sdev->host->hostt->slave_configure) sdev->host->hostt->slave_configure(sdev);