patch-2.3.9 linux/drivers/scsi/st.c

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

diff -u --recursive --new-file v2.3.8/linux/drivers/scsi/st.c linux/drivers/scsi/st.c
@@ -890,7 +890,7 @@
     kdev_t devt = inode->i_rdev;
     int dev;
 
-    if (filp->f_count > 1)
+    if (atomic_read(&filp->f_count) > 1)
 	return 0;
 
     dev = TAPE_NR(devt);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)