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

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

diff -u --recursive --new-file v2.1.125/linux/drivers/scsi/scsi_obsolete.c linux/drivers/scsi/scsi_obsolete.c
@@ -658,8 +658,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