Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-10773 obdclass: yield cpu during changelog_block_trim_ext
[fs/lustre-release.git]
/
lustre
/
obdclass
/
lu_ref.c
diff --git
a/lustre/obdclass/lu_ref.c
b/lustre/obdclass/lu_ref.c
index
4cd6bf2
..
e847401
100644
(file)
--- a/
lustre/obdclass/lu_ref.c
+++ b/
lustre/obdclass/lu_ref.c
@@
-15,11
+15,7
@@
*
* You should have received a copy of the GNU General Public License
* version 2 along with this program; If not, see
*
* You should have received a copy of the GNU General Public License
* version 2 along with this program; If not, see
- * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
+ * http://www.gnu.org/licenses/gpl-2.0.html
*
* GPL HEADER END
*/
*
* GPL HEADER END
*/
@@
-27,7
+23,7
@@
* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2012, 201
3
, Intel Corporation.
+ * Copyright (c) 2012, 201
7
, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
*/
/*
* This file is part of Lustre, http://www.lustre.org/
@@
-84,8
+80,8
@@
static struct lu_kmem_descr lu_ref_caches[] = {
*
* Protected by lu_ref_refs_guard.
*/
*
* Protected by lu_ref_refs_guard.
*/
-static
struct list_head lu_ref_refs
;
-static
spinlock_t lu_ref_refs_guard
;
+static
LIST_HEAD(lu_ref_refs)
;
+static
DEFINE_SPINLOCK(lu_ref_refs_guard)
;
static struct lu_ref lu_ref_marker = {
.lf_guard = __SPIN_LOCK_UNLOCKED(lu_ref_marker.lf_guard),
.lf_list = LIST_HEAD_INIT(lu_ref_marker.lf_list),
static struct lu_ref lu_ref_marker = {
.lf_guard = __SPIN_LOCK_UNLOCKED(lu_ref_marker.lf_guard),
.lf_list = LIST_HEAD_INIT(lu_ref_marker.lf_list),
@@
-423,8
+419,6
@@
int lu_ref_global_init(void)
CDEBUG(D_CONSOLE,
"lu_ref tracking is enabled. Performance isn't.\n");
CDEBUG(D_CONSOLE,
"lu_ref tracking is enabled. Performance isn't.\n");
- INIT_LIST_HEAD(&lu_ref_refs);
- spin_lock_init(&lu_ref_refs_guard);
result = lu_kmem_init(lu_ref_caches);
#ifdef CONFIG_PROC_FS
result = lu_kmem_init(lu_ref_caches);
#ifdef CONFIG_PROC_FS