Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
fff7afd7
Commit
fff7afd7
authored
May 19, 2005
by
Thomas Gleixner
Committed by
Thomas Gleixner
May 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[JFFS2] Convert thread start semaphore to completion
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
90e260c8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
fs/jffs2/background.c
fs/jffs2/background.c
+4
-4
include/linux/jffs2_fs_sb.h
include/linux/jffs2_fs_sb.h
+2
-2
No files found.
fs/jffs2/background.c
View file @
fff7afd7
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: background.c,v 1.5
0 2004/11/16 20:36:10 dwmw2
Exp $
* $Id: background.c,v 1.5
2 2005/05/19 16:18:08 gleixner
Exp $
*
*/
...
...
@@ -37,7 +37,7 @@ int jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c)
if
(
c
->
gc_task
)
BUG
();
init_
MUTEX_LOCKED
(
&
c
->
gc_thread_start
);
init_
completion
(
&
c
->
gc_thread_start
);
init_completion
(
&
c
->
gc_thread_exit
);
pid
=
kernel_thread
(
jffs2_garbage_collect_thread
,
c
,
CLONE_FS
|
CLONE_FILES
);
...
...
@@ -48,7 +48,7 @@ int jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c)
}
else
{
/* Wait for it... */
D1
(
printk
(
KERN_DEBUG
"JFFS2: Garbage collect thread is pid %d
\n
"
,
pid
));
dow
n
(
&
c
->
gc_thread_start
);
wait_for_completio
n
(
&
c
->
gc_thread_start
);
}
return
ret
;
...
...
@@ -75,7 +75,7 @@ static int jffs2_garbage_collect_thread(void *_c)
allow_signal
(
SIGCONT
);
c
->
gc_task
=
current
;
up
(
&
c
->
gc_thread_start
);
complete
(
&
c
->
gc_thread_start
);
set_user_nice
(
current
,
10
);
...
...
include/linux/jffs2_fs_sb.h
View file @
fff7afd7
/* $Id: jffs2_fs_sb.h,v 1.5
1 2005/02/28 08:21:06 dedekind
Exp $ */
/* $Id: jffs2_fs_sb.h,v 1.5
2 2005/05/19 16:12:17 gleixner
Exp $ */
#ifndef _JFFS2_FS_SB
#define _JFFS2_FS_SB
...
...
@@ -32,7 +32,7 @@ struct jffs2_sb_info {
unsigned
int
flags
;
struct
task_struct
*
gc_task
;
/* GC task struct */
struct
semaphore
gc_thread_start
;
/* GC thread start mutex
*/
struct
completion
gc_thread_start
;
/* GC thread start completion
*/
struct
completion
gc_thread_exit
;
/* GC thread exit completion port */
struct
semaphore
alloc_sem
;
/* Used to protect all the following
...
...
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