patch-2.4.11-dontuse linux/drivers/scsi/st.c
Next file: linux/drivers/scsi/sym53c416.c
Previous file: linux/drivers/scsi/sr.c
Back to the patch index
Back to the overall index
- Lines: 60
- Date:
Wed Oct 3 14:28:50 2001
- Orig file:
v2.4.10/linux/drivers/scsi/st.c
- Orig date:
Mon Aug 27 12:41:44 2001
diff -u --recursive --new-file v2.4.10/linux/drivers/scsi/st.c linux/drivers/scsi/st.c
@@ -12,7 +12,7 @@
Copyright 1992 - 2001 Kai Makisara
email Kai.Makisara@metla.fi
- Last modified: Sun Aug 12 12:34:28 2001 by makisara@kai.makisara.local
+ Last modified: Wed Oct 3 22:17:59 2001 by makisara@kai.makisara.local
Some small formal changes - aeb, 950809
Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support
@@ -21,7 +21,7 @@
error handling will be discarded.
*/
-static char *verstr = "20010812";
+static char *verstr = "20011003";
#include <linux/module.h>
@@ -78,6 +78,8 @@
MODULE_AUTHOR("Kai Makisara");
MODULE_DESCRIPTION("SCSI Tape Driver");
+MODULE_LICENSE("GPL");
+
MODULE_PARM(buffer_kbs, "i");
MODULE_PARM_DESC(buffer_kbs, "Default driver buffer size (KB; 32)");
MODULE_PARM(write_threshold_kbs, "i");
@@ -87,6 +89,8 @@
MODULE_PARM(max_sg_segs, "i");
MODULE_PARM_DESC(max_sg_segs, "Maximum number of scatter/gather segments to use (32)");
+EXPORT_NO_SYMBOLS;
+
#ifndef MODULE
static struct st_dev_parm {
char *name;
@@ -667,6 +671,7 @@
if (STp->device->host->hostt->module)
__MOD_INC_USE_COUNT(STp->device->host->hostt->module);
+ STp->device->access_count++;
if (!scsi_block_when_processing_errors(STp->device)) {
retval = (-ENXIO);
@@ -907,6 +912,7 @@
STp->buffer = NULL;
}
STp->in_use = 0;
+ STp->device->access_count--;
if (STp->device->host->hostt->module)
__MOD_DEC_USE_COUNT(STp->device->host->hostt->module);
return retval;
@@ -1064,6 +1070,7 @@
STp->in_use = 0;
write_unlock_irqrestore(&st_dev_arr_lock, flags);
+ STp->device->access_count--;
if (STp->device->host->hostt->module)
__MOD_DEC_USE_COUNT(STp->device->host->hostt->module);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)