2003-06-24 05:03:34

by Prashanth T

[permalink] [raw]
Subject: [PATCH] Race conditions while accessing /proc/scsi/scsi

--- drivers/scsi/scsi_scan.c Tue Jun 3 15:09:14 2003
+++ drivers/scsi/scsi_scan.c.mod Tue Jun 3 15:05:14 2003
@@ -323,6 +323,7 @@
SDpnt->queue_depth = 1;
SDpnt->host = shpnt;
SDpnt->online = TRUE;
+ SDpnt->access_count = 1;

initialize_merge_fn(SDpnt);

@@ -757,6 +758,7 @@
SDpnt->host = shpnt;
SDpnt->online = TRUE;
SDpnt->scsi_level = scsi_level;
+ SDpnt->access_count = 1;

/*
* Register the queue for the device. All I/O requests will come


Attachments:
script.txt (88.00 B)
oops.txt (1.72 kB)
proc_read.txt (25.05 kB)
2418v.patch (470.00 B)
Download all attachments