From 9a82775f41738c32451677c4a9bc837a7bec2fc6 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 29 Jan 2004 03:51:34 +0000 Subject: [PATCH] Update b_bug974 from HEAD (20040128_1901) --- lustre/kernel_patches/patches/vfs_intent-2.4.21-chaos.patch | 4 ++-- lustre/ptlrpc/ptlrpcd.c | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lustre/kernel_patches/patches/vfs_intent-2.4.21-chaos.patch b/lustre/kernel_patches/patches/vfs_intent-2.4.21-chaos.patch index 6affaed..1ceb50d 100644 --- a/lustre/kernel_patches/patches/vfs_intent-2.4.21-chaos.patch +++ b/lustre/kernel_patches/patches/vfs_intent-2.4.21-chaos.patch @@ -1605,9 +1605,9 @@ Index: linux-2.4.21-chaos/include/linux/dcache.h + void (*d_unpin)(struct dentry *, struct vfsmount *, int); }; -+#define PIN(de,mnt,flag) if (de->d_op && de->d_op->d_pin) \ ++#define PIN(de,mnt,flag) if (de && de->d_op && de->d_op->d_pin) \ + de->d_op->d_pin(de, mnt, flag); -+#define UNPIN(de,mnt,flag) if (de->d_op && de->d_op->d_unpin) \ ++#define UNPIN(de,mnt,flag) if (de && de->d_op && de->d_op->d_unpin) \ + de->d_op->d_unpin(de, mnt, flag); + + diff --git a/lustre/ptlrpc/ptlrpcd.c b/lustre/ptlrpc/ptlrpcd.c index b7b9700..aff00b8 100644 --- a/lustre/ptlrpc/ptlrpcd.c +++ b/lustre/ptlrpc/ptlrpcd.c @@ -67,12 +67,18 @@ static struct ptlrpcd_ctl { static DECLARE_MUTEX(ptlrpcd_sem); static int ptlrpcd_users = 0; +void ptlrpcd_wake(void) +{ + struct ptlrpcd_ctl *pc = &ptlrpcd_pc; + wake_up(&pc->pc_waitq); +} + void ptlrpcd_add_req(struct ptlrpc_request *req) { struct ptlrpcd_ctl *pc = &ptlrpcd_pc; ptlrpc_set_add_new_req(pc->pc_set, req); - wake_up(&pc->pc_waitq); + ptlrpcd_wake(); } static int ptlrpcd_check(struct ptlrpcd_ctl *pc) -- 1.8.3.1