patch-2.1.89 linux/drivers/scsi/sg.c

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

diff -u --recursive --new-file v2.1.88/linux/drivers/scsi/sg.c linux/drivers/scsi/sg.c
@@ -547,8 +547,8 @@
         struct scsi_generic *device = &scsi_generics[dev];
         unsigned int mask = 0;
 
-        poll_wait(&scsi_generics[dev].read_wait, wait);
-        poll_wait(&scsi_generics[dev].write_wait, wait);
+        poll_wait(file, &scsi_generics[dev].read_wait, wait);
+        poll_wait(file, &scsi_generics[dev].write_wait, wait);
         if(device->pending && device->complete)
                 mask |= POLLIN | POLLRDNORM;
         if(!device->pending)

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