Skip to content
Snippets Groups Projects
Commit 89458765 authored by Bobi Jam's avatar Bobi Jam
Browse files

Branch HEAD

b=16266
o=komal
i=adilger, bobijam

add missing LPROCFS_ENTRY/EXIT markers in HEAD.
parent 7d4c1044
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,7 @@ struct proc_dir_entry *lprocfs_srch(struct proc_dir_entry *head, ...@@ -58,6 +58,7 @@ struct proc_dir_entry *lprocfs_srch(struct proc_dir_entry *head,
if (head == NULL) if (head == NULL)
return NULL; return NULL;
LPROCFS_ENTRY();
temp = head->subdir; temp = head->subdir;
while (temp != NULL) { while (temp != NULL) {
...@@ -66,6 +67,7 @@ struct proc_dir_entry *lprocfs_srch(struct proc_dir_entry *head, ...@@ -66,6 +67,7 @@ struct proc_dir_entry *lprocfs_srch(struct proc_dir_entry *head,
temp = temp->next; temp = temp->next;
} }
LPROCFS_EXIT();
return NULL; return NULL;
} }
...@@ -309,6 +311,7 @@ void lprocfs_remove(struct proc_dir_entry **rooth) ...@@ -309,6 +311,7 @@ void lprocfs_remove(struct proc_dir_entry **rooth)
parent = root->parent; parent = root->parent;
LASSERT(parent != NULL); LASSERT(parent != NULL);
LPROCFS_ENTRY(); /* search vs remove race */
while (1) { while (1) {
while (temp->subdir != NULL) while (temp->subdir != NULL)
...@@ -332,6 +335,7 @@ void lprocfs_remove(struct proc_dir_entry **rooth) ...@@ -332,6 +335,7 @@ void lprocfs_remove(struct proc_dir_entry **rooth)
if (temp == parent) if (temp == parent)
break; break;
} }
LPROCFS_EXIT();
} }
void lprocfs_remove_proc_entry(const char *name, struct proc_dir_entry *parent) void lprocfs_remove_proc_entry(const char *name, struct proc_dir_entry *parent)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment