浏览代码

[SCSI] ses: Fix timeout

Timeouts are measured in jiffies, not in seconds.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Matthew Wilcox 17 年之前
父节点
当前提交
c95e62ce89
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/scsi/ses.c

+ 1 - 1
drivers/scsi/ses.c

@@ -61,7 +61,7 @@ static int ses_probe(struct device *dev)
 	return err;
 	return err;
 }
 }
 
 
-#define SES_TIMEOUT 30
+#define SES_TIMEOUT (30 * HZ)
 #define SES_RETRIES 3
 #define SES_RETRIES 3
 
 
 static int ses_recv_diag(struct scsi_device *sdev, int page_code,
 static int ses_recv_diag(struct scsi_device *sdev, int page_code,