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
8cf4ec99
Commit
8cf4ec99
authored
Sep 20, 2002
by
Dave Kleikamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JFS: swsusp support
parent
9bda462a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
21 deletions
+40
-21
fs/jfs/jfs_logmgr.c
fs/jfs/jfs_logmgr.c
+12
-6
fs/jfs/jfs_txnmgr.c
fs/jfs/jfs_txnmgr.c
+28
-15
No files found.
fs/jfs/jfs_logmgr.c
View file @
8cf4ec99
...
...
@@ -66,6 +66,7 @@
#include <linux/completion.h>
#include <linux/buffer_head.h>
/* for sync_blockdev() */
#include <linux/bio.h>
#include <linux/suspend.h>
#include "jfs_incore.h"
#include "jfs_filsys.h"
#include "jfs_metapage.h"
...
...
@@ -2141,12 +2142,17 @@ int jfsIOWait(void *arg)
lbmStartIO
(
bp
);
spin_lock_irq
(
&
log_redrive_lock
);
}
add_wait_queue
(
&
jfs_IO_thread_wait
,
&
wq
);
set_current_state
(
TASK_INTERRUPTIBLE
);
spin_unlock_irq
(
&
log_redrive_lock
);
schedule
();
current
->
state
=
TASK_RUNNING
;
remove_wait_queue
(
&
jfs_IO_thread_wait
,
&
wq
);
if
(
current
->
flags
&
PF_FREEZE
)
{
spin_unlock_irq
(
&
log_redrive_lock
);
refrigerator
(
PF_IOTHREAD
);
}
else
{
add_wait_queue
(
&
jfs_IO_thread_wait
,
&
wq
);
set_current_state
(
TASK_INTERRUPTIBLE
);
spin_unlock_irq
(
&
log_redrive_lock
);
schedule
();
current
->
state
=
TASK_RUNNING
;
remove_wait_queue
(
&
jfs_IO_thread_wait
,
&
wq
);
}
}
while
(
!
jfs_stop_threads
);
jFYI
(
1
,(
"jfsIOWait being killed!
\n
"
));
...
...
fs/jfs/jfs_txnmgr.c
View file @
8cf4ec99
...
...
@@ -47,6 +47,7 @@
#include <linux/vmalloc.h>
#include <linux/smp_lock.h>
#include <linux/completion.h>
#include <linux/suspend.h>
#include "jfs_incore.h"
#include "jfs_filsys.h"
#include "jfs_metapage.h"
...
...
@@ -2789,8 +2790,6 @@ int jfs_lazycommit(void *arg)
complete
(
&
jfsIOwait
);
do
{
DECLARE_WAITQUEUE
(
wq
,
current
);
LAZY_LOCK
(
flags
);
restart:
WorkDone
=
0
;
...
...
@@ -2825,12 +2824,19 @@ int jfs_lazycommit(void *arg)
if
(
WorkDone
)
goto
restart
;
add_wait_queue
(
&
jfs_commit_thread_wait
,
&
wq
);
set_current_state
(
TASK_INTERRUPTIBLE
);
LAZY_UNLOCK
(
flags
);
schedule
();
current
->
state
=
TASK_RUNNING
;
remove_wait_queue
(
&
jfs_commit_thread_wait
,
&
wq
);
if
(
current
->
flags
&
PF_FREEZE
)
{
LAZY_UNLOCK
(
flags
);
refrigerator
(
PF_IOTHREAD
);
}
else
{
DECLARE_WAITQUEUE
(
wq
,
current
);
add_wait_queue
(
&
jfs_commit_thread_wait
,
&
wq
);
set_current_state
(
TASK_INTERRUPTIBLE
);
LAZY_UNLOCK
(
flags
);
schedule
();
current
->
state
=
TASK_RUNNING
;
remove_wait_queue
(
&
jfs_commit_thread_wait
,
&
wq
);
}
}
while
(
!
jfs_stop_threads
);
if
(
TxAnchor
.
unlock_queue
)
...
...
@@ -2981,7 +2987,6 @@ int jfs_sync(void *arg)
complete
(
&
jfsIOwait
);
do
{
DECLARE_WAITQUEUE
(
wq
,
current
);
/*
* write each inode on the anonymous inode list
*/
...
...
@@ -3030,12 +3035,20 @@ int jfs_sync(void *arg)
}
/* Add anon_list2 back to anon_list */
list_splice_init
(
&
TxAnchor
.
anon_list2
,
&
TxAnchor
.
anon_list
);
add_wait_queue
(
&
jfs_sync_thread_wait
,
&
wq
);
set_current_state
(
TASK_INTERRUPTIBLE
);
TXN_UNLOCK
();
schedule
();
current
->
state
=
TASK_RUNNING
;
remove_wait_queue
(
&
jfs_sync_thread_wait
,
&
wq
);
if
(
current
->
flags
&
PF_FREEZE
)
{
TXN_UNLOCK
();
refrigerator
(
PF_IOTHREAD
);
}
else
{
DECLARE_WAITQUEUE
(
wq
,
current
);
add_wait_queue
(
&
jfs_sync_thread_wait
,
&
wq
);
set_current_state
(
TASK_INTERRUPTIBLE
);
TXN_UNLOCK
();
schedule
();
current
->
state
=
TASK_RUNNING
;
remove_wait_queue
(
&
jfs_sync_thread_wait
,
&
wq
);
}
}
while
(
!
jfs_stop_threads
);
jFYI
(
1
,
(
"jfs_sync being killed
\n
"
));
...
...
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