From c0078521d77352ff4eb714a85c252177ebb39391 Mon Sep 17 00:00:00 2001 From: bobijam Date: Fri, 10 Oct 2008 01:50:39 +0000 Subject: [PATCH] Branch b1_8_gate b=17309 i=johann backport from bz 16266 for proper using write lock in lprocfs_remove(). --- lustre/include/lprocfs_status.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/include/lprocfs_status.h b/lustre/include/lprocfs_status.h index 15be747..52fb04b 100644 --- a/lustre/include/lprocfs_status.h +++ b/lustre/include/lprocfs_status.h @@ -550,6 +550,12 @@ extern struct rw_semaphore _lprocfs_lock; return -ENODEV; \ } \ } while(0) +#define LPROCFS_WRITE_ENTRY() do { \ + down_write(&_lprocfs_lock); \ +} while(0) +#define LPROCFS_WRITE_EXIT() do { \ + up_write(&_lprocfs_lock); \ +} while(0) /* You must use these macros when you want to refer to * the import in a client obd_device for a lprocfs entry */ -- 1.8.3.1