mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-21 18:26:47 +03:00
OK, I think this is the last of major cleanup and restructuring.
We've dropped all the linux- prefixes on the file in favor of spl- which makes more sense. And we've cleaned up some of the includes so everybody should be including their own dependencies properly. All a module which wants to use the spl support needs to do in include spl.h and ensure it has access to Module.symvers. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@16 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
@@ -2,18 +2,18 @@
|
||||
|
||||
MODULES := spl
|
||||
DISTFILES = Makefile.in \
|
||||
linux-kmem.c linux-rwlock.c linux-taskq.c \
|
||||
linux-thread.c linux-generic.c
|
||||
spl-kmem.c spl-rwlock.c spl-taskq.c \
|
||||
spl-thread.c spl-generic.c
|
||||
CPPFLAGS += @KERNELCPPFLAGS@
|
||||
|
||||
# Solaris porting layer module
|
||||
obj-m := spl.o
|
||||
|
||||
spl-objs += linux-kmem.o
|
||||
spl-objs += linux-thread.o
|
||||
spl-objs += linux-taskq.o
|
||||
spl-objs += linux-rwlock.o
|
||||
spl-objs += linux-generic.o
|
||||
spl-objs += spl-kmem.o
|
||||
spl-objs += spl-thread.o
|
||||
spl-objs += spl-taskq.o
|
||||
spl-objs += spl-rwlock.o
|
||||
spl-objs += spl-generic.o
|
||||
|
||||
splmodule := spl.ko
|
||||
splmoduledir := @kmoduledir@/kernel/lib/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "linux-generic.h"
|
||||
#include "spl-generic.h"
|
||||
#include "config.h"
|
||||
|
||||
/*
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "linux-kmem.h"
|
||||
#include "spl-kmem.h"
|
||||
|
||||
/*
|
||||
* Memory allocation interfaces
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <linux-rwlock.h>
|
||||
#include <spl-rwlock.h>
|
||||
|
||||
int
|
||||
rw_lock_held(krwlock_t *rwlp)
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <linux-taskq.h>
|
||||
#include <spl-taskq.h>
|
||||
|
||||
/*
|
||||
* Task queue interface
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <linux-thread.h>
|
||||
#include <spl-thread.h>
|
||||
|
||||
/*
|
||||
* Thread interfaces
|
||||
@@ -90,8 +90,7 @@ __thread_create(caddr_t stk, size_t stksize, void (*proc)(void *),
|
||||
|
||||
/* Solaris says this must never fail so we try forever */
|
||||
while ((pid = kernel_thread(thread_generic_wrapper, (void *)&tp, 0)) < 0)
|
||||
printk(KERN_ERR "linux-thread: Unable to create thread; "
|
||||
"pid = %ld\n", pid);
|
||||
printk(KERN_ERR "Unable to create thread; pid = %ld\n", pid);
|
||||
|
||||
/* All signals are ignored due to sleeping TASK_UNINTERRUPTIBLE */
|
||||
for (;;) {
|
||||
Reference in New Issue
Block a user