Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a93de984
Commit
a93de984
authored
Nov 06, 2002
by
Theodore Y. Ts'o
Committed by
Linus Torvalds
Nov 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix illegal sleep in mbcache.
This patch from Andreas Gruenbacher fixes an illegal sleep trace.
parent
32e71bf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
fs/mbcache.c
fs/mbcache.c
+15
-12
No files found.
fs/mbcache.c
View file @
a93de984
...
@@ -324,14 +324,6 @@ mb_cache_create(const char *name, struct mb_cache_op *cache_op,
...
@@ -324,14 +324,6 @@ mb_cache_create(const char *name, struct mb_cache_op *cache_op,
goto
fail
;
goto
fail
;
spin_lock
(
&
mb_cache_spinlock
);
spin_lock
(
&
mb_cache_spinlock
);
if
(
list_empty
(
&
mb_cache_list
))
{
if
(
mb_shrinker
)
{
printk
(
KERN_ERR
"%s: already have a shrinker!
\n
"
,
__FUNCTION__
);
remove_shrinker
(
mb_shrinker
);
}
mb_shrinker
=
set_shrinker
(
DEFAULT_SEEKS
,
mb_cache_shrink_fn
);
}
list_add
(
&
cache
->
c_cache_list
,
&
mb_cache_list
);
list_add
(
&
cache
->
c_cache_list
,
&
mb_cache_list
);
spin_unlock
(
&
mb_cache_spinlock
);
spin_unlock
(
&
mb_cache_spinlock
);
return
cache
;
return
cache
;
...
@@ -414,10 +406,6 @@ mb_cache_destroy(struct mb_cache *cache)
...
@@ -414,10 +406,6 @@ mb_cache_destroy(struct mb_cache *cache)
}
}
}
}
list_del
(
&
cache
->
c_cache_list
);
list_del
(
&
cache
->
c_cache_list
);
if
(
list_empty
(
&
mb_cache_list
)
&&
mb_shrinker
)
{
remove_shrinker
(
mb_shrinker
);
mb_shrinker
=
0
;
}
spin_unlock
(
&
mb_cache_spinlock
);
spin_unlock
(
&
mb_cache_spinlock
);
l
=
free_list
.
prev
;
l
=
free_list
.
prev
;
...
@@ -700,3 +688,18 @@ mb_cache_entry_find_next(struct mb_cache_entry *prev, int index,
...
@@ -700,3 +688,18 @@ mb_cache_entry_find_next(struct mb_cache_entry *prev, int index,
}
}
#endif
/* !defined(MB_CACHE_INDEXES_COUNT) || (MB_CACHE_INDEXES_COUNT > 0) */
#endif
/* !defined(MB_CACHE_INDEXES_COUNT) || (MB_CACHE_INDEXES_COUNT > 0) */
static
int
__init
init_mbcache
(
void
)
{
mb_shrinker
=
set_shrinker
(
DEFAULT_SEEKS
,
mb_cache_shrink_fn
);
return
0
;
}
static
void
__exit
exit_mbcache
(
void
)
{
remove_shrinker
(
mb_shrinker
);
}
module_init
(
init_mbcache
)
module_exit
(
exit_mbcache
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment