mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Linux 4.13 compat: wait queues
Commit torvalds/linux@ac6424b9 - Renamed struct wait_queue -> struct wait_queue_entry. Commit torvalds/linux@2055da97 - Renamed wait_queue_head::task_list -> wait_queue_head::head - Renamed wait_queue_entry::task_list -> wait_queue_entry::entry Reviewed-by: Chunwei Chen <david.chen@osnexus.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #629
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <sys/thread.h>
|
||||
#include <sys/mutex.h>
|
||||
#include <linux/mm_compat.h>
|
||||
#include <linux/wait_compat.h>
|
||||
#include <linux/slab.h>
|
||||
#include "splat-internal.h"
|
||||
|
||||
@@ -55,7 +56,7 @@ typedef struct atomic_priv {
|
||||
unsigned long ap_magic;
|
||||
struct file *ap_file;
|
||||
kmutex_t ap_lock;
|
||||
wait_queue_head_t ap_waitq;
|
||||
spl_wait_queue_head_t ap_waitq;
|
||||
volatile uint64_t ap_atomic;
|
||||
volatile uint64_t ap_atomic_exited;
|
||||
atomic_op_t ap_op;
|
||||
|
||||
@@ -275,8 +275,8 @@ typedef struct kmem_cache_priv {
|
||||
struct file *kcp_file;
|
||||
kmem_cache_t *kcp_cache;
|
||||
spinlock_t kcp_lock;
|
||||
wait_queue_head_t kcp_ctl_waitq;
|
||||
wait_queue_head_t kcp_thr_waitq;
|
||||
spl_wait_queue_head_t kcp_ctl_waitq;
|
||||
spl_wait_queue_head_t kcp_thr_waitq;
|
||||
int kcp_flags;
|
||||
int kcp_kct_count;
|
||||
kmem_cache_thread_t *kcp_kct[SPLAT_KMEM_THREADS];
|
||||
|
||||
@@ -76,7 +76,7 @@ typedef struct rw_priv {
|
||||
struct file *rw_file;
|
||||
krwlock_t rw_rwlock;
|
||||
spinlock_t rw_lock;
|
||||
wait_queue_head_t rw_waitq;
|
||||
spl_wait_queue_head_t rw_waitq;
|
||||
int rw_completed;
|
||||
int rw_holders;
|
||||
int rw_waiters;
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <sys/random.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/mm_compat.h>
|
||||
#include <linux/wait_compat.h>
|
||||
#include <linux/slab.h>
|
||||
#include "splat-internal.h"
|
||||
|
||||
@@ -54,7 +55,7 @@ typedef struct thread_priv {
|
||||
unsigned long tp_magic;
|
||||
struct file *tp_file;
|
||||
spinlock_t tp_lock;
|
||||
wait_queue_head_t tp_waitq;
|
||||
spl_wait_queue_head_t tp_waitq;
|
||||
uint_t tp_keys[SPLAT_THREAD_TEST_KEYS];
|
||||
int tp_rc;
|
||||
int tp_count;
|
||||
|
||||
Reference in New Issue
Block a user