patch-2.1.126 linux/drivers/scsi/scsi.c

Next file: linux/drivers/scsi/scsi.h
Previous file: linux/drivers/scsi/ppa.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.125/linux/drivers/scsi/scsi.c linux/drivers/scsi/scsi.c
@@ -1734,8 +1734,7 @@
         host_active = NULL;
         
         /* For block devices "wake_up" is done in end_scsi_request */
-        if (MAJOR(SCpnt->request.rq_dev) != SCSI_DISK_MAJOR &&
-            MAJOR(SCpnt->request.rq_dev) != SCSI_CDROM_MAJOR) {
+        if (!SCSI_BLK_MAJOR(SCpnt->request.rq_dev)) {
             struct Scsi_Host * next;
             
             for (next = host->block; next != host; next = next->block)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov