patch-pre2.0.13 linux/drivers/scsi/scsi.h

Next file: linux/fs/Config.in
Previous file: linux/drivers/scsi/qlogicisp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.12/linux/drivers/scsi/scsi.h linux/drivers/scsi/scsi.h
@@ -21,6 +21,8 @@
  */
 #include <scsi/scsi.h>
 
+#include <linux/random.h>
+
 
 /*
  * Some defs, in case these are not defined elsewhere.
@@ -526,6 +528,7 @@
     if (req->sem != NULL) {
 	up(req->sem);
     }
+    add_blkdev_randomness(MAJOR(req->rq_dev));
     
     if (SCpnt->host->block) {
 	struct Scsi_Host * next;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this