]> git.proxmox.com Git - mirror_spl-debian.git/blobdiff - module/spl/spl-generic.c
Reimplement rwlocks for Linux lock profiling/analysis.
[mirror_spl-debian.git] / module / spl / spl-generic.c
index b81dabc56f232dfba1b19d434d2e8a858f044f90..8e0ef926310b5abdbec45fc1411de31cf02fbad6 100644 (file)
@@ -253,6 +253,22 @@ ddi_copyout(const void *from, void *to, size_t len, int flags)
 }
 EXPORT_SYMBOL(ddi_copyout);
 
+#ifndef HAVE_PUT_TASK_STRUCT
+/*
+ * This is only a stub function which should never be used.  The SPL should
+ * never be putting away the last reference on a task structure so this will
+ * not be called.  However, we still need to define it so the module does not
+ * have undefined symbol at load time.  That all said if this impossible
+ * thing does somehow happen SBUG() immediately so we know about it.
+ */
+void
+__put_task_struct(struct task_struct *t)
+{
+       SBUG();
+}
+EXPORT_SYMBOL(__put_task_struct);
+#endif /* HAVE_PUT_TASK_STRUCT */
+
 struct new_utsname *__utsname(void)
 {
 #ifdef HAVE_INIT_UTSNAME