diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-08-16 11:38:14 -0400 |
---|---|---|
committer | Martin Brandenburg <martin@omnibond.com> | 2016-08-16 11:41:24 -0400 |
commit | 1d503617884ed43af1c03685e73ce23f155d3fa4 (patch) | |
tree | e576cd8866c2cec6c5e29a75098d27f27e78e90a /fs/orangefs | |
parent | 889d5f1baca698a4510174cdd6a6596997d0deb4 (diff) |
orangefs: rename most remaining global variables
Only op_timeout_secs, slot_timeout_secs, and hash_table_size are left
because they are exposed as module parameters. All other global
variables have the orangefs_ prefix.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r-- | fs/orangefs/dcache.c | 2 | ||||
-rw-r--r-- | fs/orangefs/devorangefs-req.c | 20 | ||||
-rw-r--r-- | fs/orangefs/namei.c | 8 | ||||
-rw-r--r-- | fs/orangefs/orangefs-kernel.h | 10 | ||||
-rw-r--r-- | fs/orangefs/orangefs-mod.c | 28 | ||||
-rw-r--r-- | fs/orangefs/orangefs-sysfs.c | 8 | ||||
-rw-r--r-- | fs/orangefs/orangefs-utils.c | 3 | ||||
-rw-r--r-- | fs/orangefs/super.c | 4 | ||||
-rw-r--r-- | fs/orangefs/waitqueue.c | 10 |
9 files changed, 47 insertions, 46 deletions
diff --git a/fs/orangefs/dcache.c b/fs/orangefs/dcache.c index 00235bf644dc..1e8fe844e69f 100644 --- a/fs/orangefs/dcache.c +++ b/fs/orangefs/dcache.c | |||
@@ -73,7 +73,7 @@ static int orangefs_revalidate_lookup(struct dentry *dentry) | |||
73 | } | 73 | } |
74 | } | 74 | } |
75 | 75 | ||
76 | dentry->d_time = jiffies + dcache_timeout_msecs*HZ/1000; | 76 | dentry->d_time = jiffies + orangefs_dcache_timeout_msecs*HZ/1000; |
77 | ret = 1; | 77 | ret = 1; |
78 | out_release_op: | 78 | out_release_op: |
79 | op_release(new_op); | 79 | op_release(new_op); |
diff --git a/fs/orangefs/devorangefs-req.c b/fs/orangefs/devorangefs-req.c index a5c76583dffa..641e27152d7e 100644 --- a/fs/orangefs/devorangefs-req.c +++ b/fs/orangefs/devorangefs-req.c | |||
@@ -46,7 +46,7 @@ static void orangefs_devreq_add_op(struct orangefs_kernel_op_s *op) | |||
46 | { | 46 | { |
47 | int index = hash_func(op->tag, hash_table_size); | 47 | int index = hash_func(op->tag, hash_table_size); |
48 | 48 | ||
49 | list_add_tail(&op->list, &htable_ops_in_progress[index]); | 49 | list_add_tail(&op->list, &orangefs_htable_ops_in_progress[index]); |
50 | } | 50 | } |
51 | 51 | ||
52 | /* | 52 | /* |
@@ -60,20 +60,20 @@ static struct orangefs_kernel_op_s *orangefs_devreq_remove_op(__u64 tag) | |||
60 | 60 | ||
61 | index = hash_func(tag, hash_table_size); | 61 | index = hash_func(tag, hash_table_size); |
62 | 62 | ||
63 | spin_lock(&htable_ops_in_progress_lock); | 63 | spin_lock(&orangefs_htable_ops_in_progress_lock); |
64 | list_for_each_entry_safe(op, | 64 | list_for_each_entry_safe(op, |
65 | next, | 65 | next, |
66 | &htable_ops_in_progress[index], | 66 | &orangefs_htable_ops_in_progress[index], |
67 | list) { | 67 | list) { |
68 | if (op->tag == tag && !op_state_purged(op) && | 68 | if (op->tag == tag && !op_state_purged(op) && |
69 | !op_state_given_up(op)) { | 69 | !op_state_given_up(op)) { |
70 | list_del_init(&op->list); | 70 | list_del_init(&op->list); |
71 | spin_unlock(&htable_ops_in_progress_lock); | 71 | spin_unlock(&orangefs_htable_ops_in_progress_lock); |
72 | return op; | 72 | return op; |
73 | } | 73 | } |
74 | } | 74 | } |
75 | 75 | ||
76 | spin_unlock(&htable_ops_in_progress_lock); | 76 | spin_unlock(&orangefs_htable_ops_in_progress_lock); |
77 | return NULL; | 77 | return NULL; |
78 | } | 78 | } |
79 | 79 | ||
@@ -279,11 +279,11 @@ restart: | |||
279 | if (ret != 0) | 279 | if (ret != 0) |
280 | goto error; | 280 | goto error; |
281 | 281 | ||
282 | spin_lock(&htable_ops_in_progress_lock); | 282 | spin_lock(&orangefs_htable_ops_in_progress_lock); |
283 | spin_lock(&cur_op->lock); | 283 | spin_lock(&cur_op->lock); |
284 | if (unlikely(op_state_given_up(cur_op))) { | 284 | if (unlikely(op_state_given_up(cur_op))) { |
285 | spin_unlock(&cur_op->lock); | 285 | spin_unlock(&cur_op->lock); |
286 | spin_unlock(&htable_ops_in_progress_lock); | 286 | spin_unlock(&orangefs_htable_ops_in_progress_lock); |
287 | complete(&cur_op->waitq); | 287 | complete(&cur_op->waitq); |
288 | goto restart; | 288 | goto restart; |
289 | } | 289 | } |
@@ -301,7 +301,7 @@ restart: | |||
301 | current->comm); | 301 | current->comm); |
302 | orangefs_devreq_add_op(cur_op); | 302 | orangefs_devreq_add_op(cur_op); |
303 | spin_unlock(&cur_op->lock); | 303 | spin_unlock(&cur_op->lock); |
304 | spin_unlock(&htable_ops_in_progress_lock); | 304 | spin_unlock(&orangefs_htable_ops_in_progress_lock); |
305 | 305 | ||
306 | /* The client only asks to read one size buffer. */ | 306 | /* The client only asks to read one size buffer. */ |
307 | return MAX_DEV_REQ_UPSIZE; | 307 | return MAX_DEV_REQ_UPSIZE; |
@@ -620,7 +620,7 @@ static long dispatch_ioctl_command(unsigned int command, unsigned long arg) | |||
620 | * all of the remounts are serviced (to avoid ops between | 620 | * all of the remounts are serviced (to avoid ops between |
621 | * mounts to fail) | 621 | * mounts to fail) |
622 | */ | 622 | */ |
623 | ret = mutex_lock_interruptible(&request_mutex); | 623 | ret = mutex_lock_interruptible(&orangefs_request_mutex); |
624 | if (ret < 0) | 624 | if (ret < 0) |
625 | return ret; | 625 | return ret; |
626 | gossip_debug(GOSSIP_DEV_DEBUG, | 626 | gossip_debug(GOSSIP_DEV_DEBUG, |
@@ -655,7 +655,7 @@ static long dispatch_ioctl_command(unsigned int command, unsigned long arg) | |||
655 | gossip_debug(GOSSIP_DEV_DEBUG, | 655 | gossip_debug(GOSSIP_DEV_DEBUG, |
656 | "%s: priority remount complete\n", | 656 | "%s: priority remount complete\n", |
657 | __func__); | 657 | __func__); |
658 | mutex_unlock(&request_mutex); | 658 | mutex_unlock(&orangefs_request_mutex); |
659 | return ret; | 659 | return ret; |
660 | 660 | ||
661 | case ORANGEFS_DEV_UPSTREAM: | 661 | case ORANGEFS_DEV_UPSTREAM: |
diff --git a/fs/orangefs/namei.c b/fs/orangefs/namei.c index 62c525936ee8..35269e31de92 100644 --- a/fs/orangefs/namei.c +++ b/fs/orangefs/namei.c | |||
@@ -72,7 +72,7 @@ static int orangefs_create(struct inode *dir, | |||
72 | 72 | ||
73 | d_instantiate(dentry, inode); | 73 | d_instantiate(dentry, inode); |
74 | unlock_new_inode(inode); | 74 | unlock_new_inode(inode); |
75 | dentry->d_time = jiffies + dcache_timeout_msecs*HZ/1000; | 75 | dentry->d_time = jiffies + orangefs_dcache_timeout_msecs*HZ/1000; |
76 | ORANGEFS_I(inode)->getattr_time = jiffies - 1; | 76 | ORANGEFS_I(inode)->getattr_time = jiffies - 1; |
77 | 77 | ||
78 | gossip_debug(GOSSIP_NAME_DEBUG, | 78 | gossip_debug(GOSSIP_NAME_DEBUG, |
@@ -183,7 +183,7 @@ static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry, | |||
183 | goto out; | 183 | goto out; |
184 | } | 184 | } |
185 | 185 | ||
186 | dentry->d_time = jiffies + dcache_timeout_msecs*HZ/1000; | 186 | dentry->d_time = jiffies + orangefs_dcache_timeout_msecs*HZ/1000; |
187 | 187 | ||
188 | inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn); | 188 | inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn); |
189 | if (IS_ERR(inode)) { | 189 | if (IS_ERR(inode)) { |
@@ -322,7 +322,7 @@ static int orangefs_symlink(struct inode *dir, | |||
322 | 322 | ||
323 | d_instantiate(dentry, inode); | 323 | d_instantiate(dentry, inode); |
324 | unlock_new_inode(inode); | 324 | unlock_new_inode(inode); |
325 | dentry->d_time = jiffies + dcache_timeout_msecs*HZ/1000; | 325 | dentry->d_time = jiffies + orangefs_dcache_timeout_msecs*HZ/1000; |
326 | ORANGEFS_I(inode)->getattr_time = jiffies - 1; | 326 | ORANGEFS_I(inode)->getattr_time = jiffies - 1; |
327 | 327 | ||
328 | gossip_debug(GOSSIP_NAME_DEBUG, | 328 | gossip_debug(GOSSIP_NAME_DEBUG, |
@@ -386,7 +386,7 @@ static int orangefs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode | |||
386 | 386 | ||
387 | d_instantiate(dentry, inode); | 387 | d_instantiate(dentry, inode); |
388 | unlock_new_inode(inode); | 388 | unlock_new_inode(inode); |
389 | dentry->d_time = jiffies + dcache_timeout_msecs*HZ/1000; | 389 | dentry->d_time = jiffies + orangefs_dcache_timeout_msecs*HZ/1000; |
390 | ORANGEFS_I(inode)->getattr_time = jiffies - 1; | 390 | ORANGEFS_I(inode)->getattr_time = jiffies - 1; |
391 | 391 | ||
392 | gossip_debug(GOSSIP_NAME_DEBUG, | 392 | gossip_debug(GOSSIP_NAME_DEBUG, |
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h index 761a1d852979..5584dfadb81c 100644 --- a/fs/orangefs/orangefs-kernel.h +++ b/fs/orangefs/orangefs-kernel.h | |||
@@ -510,18 +510,18 @@ bool orangefs_cancel_op_in_progress(struct orangefs_kernel_op_s *op); | |||
510 | 510 | ||
511 | int orangefs_normalize_to_errno(__s32 error_code); | 511 | int orangefs_normalize_to_errno(__s32 error_code); |
512 | 512 | ||
513 | extern struct mutex request_mutex; | 513 | extern struct mutex orangefs_request_mutex; |
514 | extern int op_timeout_secs; | 514 | extern int op_timeout_secs; |
515 | extern int slot_timeout_secs; | 515 | extern int slot_timeout_secs; |
516 | extern int dcache_timeout_msecs; | 516 | extern int orangefs_dcache_timeout_msecs; |
517 | extern int getattr_timeout_msecs; | 517 | extern int orangefs_getattr_timeout_msecs; |
518 | extern struct list_head orangefs_superblocks; | 518 | extern struct list_head orangefs_superblocks; |
519 | extern spinlock_t orangefs_superblocks_lock; | 519 | extern spinlock_t orangefs_superblocks_lock; |
520 | extern struct list_head orangefs_request_list; | 520 | extern struct list_head orangefs_request_list; |
521 | extern spinlock_t orangefs_request_list_lock; | 521 | extern spinlock_t orangefs_request_list_lock; |
522 | extern wait_queue_head_t orangefs_request_list_waitq; | 522 | extern wait_queue_head_t orangefs_request_list_waitq; |
523 | extern struct list_head *htable_ops_in_progress; | 523 | extern struct list_head *orangefs_htable_ops_in_progress; |
524 | extern spinlock_t htable_ops_in_progress_lock; | 524 | extern spinlock_t orangefs_htable_ops_in_progress_lock; |
525 | extern int hash_table_size; | 525 | extern int hash_table_size; |
526 | 526 | ||
527 | extern const struct address_space_operations orangefs_address_operations; | 527 | extern const struct address_space_operations orangefs_address_operations; |
diff --git a/fs/orangefs/orangefs-mod.c b/fs/orangefs/orangefs-mod.c index f342a2cef1e3..2e5b03065f34 100644 --- a/fs/orangefs/orangefs-mod.c +++ b/fs/orangefs/orangefs-mod.c | |||
@@ -30,8 +30,8 @@ static ulong module_parm_debug_mask; | |||
30 | __u64 orangefs_gossip_debug_mask; | 30 | __u64 orangefs_gossip_debug_mask; |
31 | int op_timeout_secs = ORANGEFS_DEFAULT_OP_TIMEOUT_SECS; | 31 | int op_timeout_secs = ORANGEFS_DEFAULT_OP_TIMEOUT_SECS; |
32 | int slot_timeout_secs = ORANGEFS_DEFAULT_SLOT_TIMEOUT_SECS; | 32 | int slot_timeout_secs = ORANGEFS_DEFAULT_SLOT_TIMEOUT_SECS; |
33 | int dcache_timeout_msecs = 50; | 33 | int orangefs_dcache_timeout_msecs = 50; |
34 | int getattr_timeout_msecs = 50; | 34 | int orangefs_getattr_timeout_msecs = 50; |
35 | 35 | ||
36 | MODULE_LICENSE("GPL"); | 36 | MODULE_LICENSE("GPL"); |
37 | MODULE_AUTHOR("ORANGEFS Development Team"); | 37 | MODULE_AUTHOR("ORANGEFS Development Team"); |
@@ -60,11 +60,11 @@ module_param(slot_timeout_secs, int, 0); | |||
60 | * for now it's only being used to stall the op addition to the request | 60 | * for now it's only being used to stall the op addition to the request |
61 | * list | 61 | * list |
62 | */ | 62 | */ |
63 | DEFINE_MUTEX(request_mutex); | 63 | DEFINE_MUTEX(orangefs_request_mutex); |
64 | 64 | ||
65 | /* hash table for storing operations waiting for matching downcall */ | 65 | /* hash table for storing operations waiting for matching downcall */ |
66 | struct list_head *htable_ops_in_progress; | 66 | struct list_head *orangefs_htable_ops_in_progress; |
67 | DEFINE_SPINLOCK(htable_ops_in_progress_lock); | 67 | DEFINE_SPINLOCK(orangefs_htable_ops_in_progress_lock); |
68 | 68 | ||
69 | /* list for queueing upcall operations */ | 69 | /* list for queueing upcall operations */ |
70 | LIST_HEAD(orangefs_request_list); | 70 | LIST_HEAD(orangefs_request_list); |
@@ -100,9 +100,9 @@ static int __init orangefs_init(void) | |||
100 | if (ret < 0) | 100 | if (ret < 0) |
101 | goto cleanup_op; | 101 | goto cleanup_op; |
102 | 102 | ||
103 | htable_ops_in_progress = | 103 | orangefs_htable_ops_in_progress = |
104 | kcalloc(hash_table_size, sizeof(struct list_head), GFP_KERNEL); | 104 | kcalloc(hash_table_size, sizeof(struct list_head), GFP_KERNEL); |
105 | if (!htable_ops_in_progress) { | 105 | if (!orangefs_htable_ops_in_progress) { |
106 | gossip_err("Failed to initialize op hashtable"); | 106 | gossip_err("Failed to initialize op hashtable"); |
107 | ret = -ENOMEM; | 107 | ret = -ENOMEM; |
108 | goto cleanup_inode; | 108 | goto cleanup_inode; |
@@ -110,7 +110,7 @@ static int __init orangefs_init(void) | |||
110 | 110 | ||
111 | /* initialize a doubly linked at each hash table index */ | 111 | /* initialize a doubly linked at each hash table index */ |
112 | for (i = 0; i < hash_table_size; i++) | 112 | for (i = 0; i < hash_table_size; i++) |
113 | INIT_LIST_HEAD(&htable_ops_in_progress[i]); | 113 | INIT_LIST_HEAD(&orangefs_htable_ops_in_progress[i]); |
114 | 114 | ||
115 | ret = fsid_key_table_initialize(); | 115 | ret = fsid_key_table_initialize(); |
116 | if (ret < 0) | 116 | if (ret < 0) |
@@ -171,7 +171,7 @@ cleanup_key_table: | |||
171 | fsid_key_table_finalize(); | 171 | fsid_key_table_finalize(); |
172 | 172 | ||
173 | cleanup_progress_table: | 173 | cleanup_progress_table: |
174 | kfree(htable_ops_in_progress); | 174 | kfree(orangefs_htable_ops_in_progress); |
175 | 175 | ||
176 | cleanup_inode: | 176 | cleanup_inode: |
177 | orangefs_inode_cache_finalize(); | 177 | orangefs_inode_cache_finalize(); |
@@ -198,12 +198,12 @@ static void __exit orangefs_exit(void) | |||
198 | orangefs_dev_cleanup(); | 198 | orangefs_dev_cleanup(); |
199 | BUG_ON(!list_empty(&orangefs_request_list)); | 199 | BUG_ON(!list_empty(&orangefs_request_list)); |
200 | for (i = 0; i < hash_table_size; i++) | 200 | for (i = 0; i < hash_table_size; i++) |
201 | BUG_ON(!list_empty(&htable_ops_in_progress[i])); | 201 | BUG_ON(!list_empty(&orangefs_htable_ops_in_progress[i])); |
202 | 202 | ||
203 | orangefs_inode_cache_finalize(); | 203 | orangefs_inode_cache_finalize(); |
204 | op_cache_finalize(); | 204 | op_cache_finalize(); |
205 | 205 | ||
206 | kfree(htable_ops_in_progress); | 206 | kfree(orangefs_htable_ops_in_progress); |
207 | 207 | ||
208 | bdi_destroy(&orangefs_backing_dev_info); | 208 | bdi_destroy(&orangefs_backing_dev_info); |
209 | 209 | ||
@@ -222,10 +222,10 @@ void purge_inprogress_ops(void) | |||
222 | struct orangefs_kernel_op_s *op; | 222 | struct orangefs_kernel_op_s *op; |
223 | struct orangefs_kernel_op_s *next; | 223 | struct orangefs_kernel_op_s *next; |
224 | 224 | ||
225 | spin_lock(&htable_ops_in_progress_lock); | 225 | spin_lock(&orangefs_htable_ops_in_progress_lock); |
226 | list_for_each_entry_safe(op, | 226 | list_for_each_entry_safe(op, |
227 | next, | 227 | next, |
228 | &htable_ops_in_progress[i], | 228 | &orangefs_htable_ops_in_progress[i], |
229 | list) { | 229 | list) { |
230 | set_op_state_purged(op); | 230 | set_op_state_purged(op); |
231 | gossip_debug(GOSSIP_DEV_DEBUG, | 231 | gossip_debug(GOSSIP_DEV_DEBUG, |
@@ -235,7 +235,7 @@ void purge_inprogress_ops(void) | |||
235 | op->op_state, | 235 | op->op_state, |
236 | current->comm); | 236 | current->comm); |
237 | } | 237 | } |
238 | spin_unlock(&htable_ops_in_progress_lock); | 238 | spin_unlock(&orangefs_htable_ops_in_progress_lock); |
239 | } | 239 | } |
240 | } | 240 | } |
241 | 241 | ||
diff --git a/fs/orangefs/orangefs-sysfs.c b/fs/orangefs/orangefs-sysfs.c index 755c37c998cf..e88370540cb4 100644 --- a/fs/orangefs/orangefs-sysfs.c +++ b/fs/orangefs/orangefs-sysfs.c | |||
@@ -218,14 +218,14 @@ static ssize_t sysfs_int_show(struct kobject *kobj, | |||
218 | rc = scnprintf(buf, | 218 | rc = scnprintf(buf, |
219 | PAGE_SIZE, | 219 | PAGE_SIZE, |
220 | "%d\n", | 220 | "%d\n", |
221 | dcache_timeout_msecs); | 221 | orangefs_dcache_timeout_msecs); |
222 | goto out; | 222 | goto out; |
223 | } else if (!strcmp(attr->attr.name, | 223 | } else if (!strcmp(attr->attr.name, |
224 | "getattr_timeout_msecs")) { | 224 | "getattr_timeout_msecs")) { |
225 | rc = scnprintf(buf, | 225 | rc = scnprintf(buf, |
226 | PAGE_SIZE, | 226 | PAGE_SIZE, |
227 | "%d\n", | 227 | "%d\n", |
228 | getattr_timeout_msecs); | 228 | orangefs_getattr_timeout_msecs); |
229 | goto out; | 229 | goto out; |
230 | } else { | 230 | } else { |
231 | goto out; | 231 | goto out; |
@@ -270,10 +270,10 @@ static ssize_t sysfs_int_store(struct kobject *kobj, | |||
270 | rc = kstrtoint(buf, 0, &slot_timeout_secs); | 270 | rc = kstrtoint(buf, 0, &slot_timeout_secs); |
271 | goto out; | 271 | goto out; |
272 | } else if (!strcmp(attr->attr.name, "dcache_timeout_msecs")) { | 272 | } else if (!strcmp(attr->attr.name, "dcache_timeout_msecs")) { |
273 | rc = kstrtoint(buf, 0, &dcache_timeout_msecs); | 273 | rc = kstrtoint(buf, 0, &orangefs_dcache_timeout_msecs); |
274 | goto out; | 274 | goto out; |
275 | } else if (!strcmp(attr->attr.name, "getattr_timeout_msecs")) { | 275 | } else if (!strcmp(attr->attr.name, "getattr_timeout_msecs")) { |
276 | rc = kstrtoint(buf, 0, &getattr_timeout_msecs); | 276 | rc = kstrtoint(buf, 0, &orangefs_getattr_timeout_msecs); |
277 | goto out; | 277 | goto out; |
278 | } else { | 278 | } else { |
279 | goto out; | 279 | goto out; |
diff --git a/fs/orangefs/orangefs-utils.c b/fs/orangefs/orangefs-utils.c index f7328f26cb00..06af81f71e10 100644 --- a/fs/orangefs/orangefs-utils.c +++ b/fs/orangefs/orangefs-utils.c | |||
@@ -347,7 +347,8 @@ int orangefs_inode_getattr(struct inode *inode, int new, int bypass) | |||
347 | inode->i_mode = type | (is_root_handle(inode) ? S_ISVTX : 0) | | 347 | inode->i_mode = type | (is_root_handle(inode) ? S_ISVTX : 0) | |
348 | orangefs_inode_perms(&new_op->downcall.resp.getattr.attributes); | 348 | orangefs_inode_perms(&new_op->downcall.resp.getattr.attributes); |
349 | 349 | ||
350 | orangefs_inode->getattr_time = jiffies + getattr_timeout_msecs*HZ/1000; | 350 | orangefs_inode->getattr_time = jiffies + |
351 | orangefs_getattr_timeout_msecs*HZ/1000; | ||
351 | ret = 0; | 352 | ret = 0; |
352 | out: | 353 | out: |
353 | op_release(new_op); | 354 | op_release(new_op); |
diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c index b9da9a0281c9..74b84c08a140 100644 --- a/fs/orangefs/super.c +++ b/fs/orangefs/super.c | |||
@@ -530,8 +530,8 @@ void orangefs_kill_sb(struct super_block *sb) | |||
530 | * make sure that ORANGEFS_DEV_REMOUNT_ALL loop that might've seen us | 530 | * make sure that ORANGEFS_DEV_REMOUNT_ALL loop that might've seen us |
531 | * gets completed before we free the dang thing. | 531 | * gets completed before we free the dang thing. |
532 | */ | 532 | */ |
533 | mutex_lock(&request_mutex); | 533 | mutex_lock(&orangefs_request_mutex); |
534 | mutex_unlock(&request_mutex); | 534 | mutex_unlock(&orangefs_request_mutex); |
535 | 535 | ||
536 | /* free the orangefs superblock private data */ | 536 | /* free the orangefs superblock private data */ |
537 | kfree(ORANGEFS_SB(sb)); | 537 | kfree(ORANGEFS_SB(sb)); |
diff --git a/fs/orangefs/waitqueue.c b/fs/orangefs/waitqueue.c index 31635bc303fe..abcfa3fa9992 100644 --- a/fs/orangefs/waitqueue.c +++ b/fs/orangefs/waitqueue.c | |||
@@ -87,9 +87,9 @@ retry_servicing: | |||
87 | */ | 87 | */ |
88 | if (!(flags & ORANGEFS_OP_NO_MUTEX)) { | 88 | if (!(flags & ORANGEFS_OP_NO_MUTEX)) { |
89 | if (flags & ORANGEFS_OP_INTERRUPTIBLE) | 89 | if (flags & ORANGEFS_OP_INTERRUPTIBLE) |
90 | ret = mutex_lock_interruptible(&request_mutex); | 90 | ret = mutex_lock_interruptible(&orangefs_request_mutex); |
91 | else | 91 | else |
92 | ret = mutex_lock_killable(&request_mutex); | 92 | ret = mutex_lock_killable(&orangefs_request_mutex); |
93 | /* | 93 | /* |
94 | * check to see if we were interrupted while waiting for | 94 | * check to see if we were interrupted while waiting for |
95 | * mutex | 95 | * mutex |
@@ -129,7 +129,7 @@ retry_servicing: | |||
129 | spin_unlock(&orangefs_request_list_lock); | 129 | spin_unlock(&orangefs_request_list_lock); |
130 | 130 | ||
131 | if (!(flags & ORANGEFS_OP_NO_MUTEX)) | 131 | if (!(flags & ORANGEFS_OP_NO_MUTEX)) |
132 | mutex_unlock(&request_mutex); | 132 | mutex_unlock(&orangefs_request_mutex); |
133 | 133 | ||
134 | ret = wait_for_matching_downcall(op, timeout, | 134 | ret = wait_for_matching_downcall(op, timeout, |
135 | flags & ORANGEFS_OP_INTERRUPTIBLE); | 135 | flags & ORANGEFS_OP_INTERRUPTIBLE); |
@@ -272,9 +272,9 @@ static void | |||
272 | } else if (op_state_in_progress(op)) { | 272 | } else if (op_state_in_progress(op)) { |
273 | /* op must be removed from the in progress htable */ | 273 | /* op must be removed from the in progress htable */ |
274 | spin_unlock(&op->lock); | 274 | spin_unlock(&op->lock); |
275 | spin_lock(&htable_ops_in_progress_lock); | 275 | spin_lock(&orangefs_htable_ops_in_progress_lock); |
276 | list_del_init(&op->list); | 276 | list_del_init(&op->list); |
277 | spin_unlock(&htable_ops_in_progress_lock); | 277 | spin_unlock(&orangefs_htable_ops_in_progress_lock); |
278 | gossip_debug(GOSSIP_WAIT_DEBUG, | 278 | gossip_debug(GOSSIP_WAIT_DEBUG, |
279 | "Interrupted: Removed op %p" | 279 | "Interrupted: Removed op %p" |
280 | " from htable_ops_in_progress\n", | 280 | " from htable_ops_in_progress\n", |