Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38661
b: refs/heads/master
c: b800a1c
h: refs/heads/master
i:
  38659: 6492c3f
v: v3
  • Loading branch information
Steven Whitehouse committed Apr 24, 2006
1 parent fcd7643 commit 5a039d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 61e085a88cb59232eb8ff5b446d70491c7bf2c68
refs/heads/master: b800a1cb3940f216c4e5c963007a1f72fca0f15f
23 changes: 9 additions & 14 deletions trunk/fs/gfs2/daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

int gfs2_scand(void *data)
{
struct gfs2_sbd *sdp = (struct gfs2_sbd *)data;
struct gfs2_sbd *sdp = data;
unsigned long t;

while (!kthread_should_stop()) {
Expand All @@ -67,20 +67,15 @@ int gfs2_scand(void *data)

int gfs2_glockd(void *data)
{
struct gfs2_sbd *sdp = (struct gfs2_sbd *)data;
DECLARE_WAITQUEUE(wait_chan, current);
struct gfs2_sbd *sdp = data;

while (!kthread_should_stop()) {
while (atomic_read(&sdp->sd_reclaim_count))
gfs2_reclaim_glock(sdp);

set_current_state(TASK_INTERRUPTIBLE);
add_wait_queue(&sdp->sd_reclaim_wq, &wait_chan);
if (!atomic_read(&sdp->sd_reclaim_count) &&
!kthread_should_stop())
schedule();
remove_wait_queue(&sdp->sd_reclaim_wq, &wait_chan);
set_current_state(TASK_RUNNING);
wait_event_interruptible(sdp->sd_reclaim_wq,
(atomic_read(&sdp->sd_reclaim_count) ||
kthread_should_stop()));
}

return 0;
Expand All @@ -94,7 +89,7 @@ int gfs2_glockd(void *data)

int gfs2_recoverd(void *data)
{
struct gfs2_sbd *sdp = (struct gfs2_sbd *)data;
struct gfs2_sbd *sdp = data;
unsigned long t;

while (!kthread_should_stop()) {
Expand All @@ -116,7 +111,7 @@ int gfs2_recoverd(void *data)

int gfs2_logd(void *data)
{
struct gfs2_sbd *sdp = (struct gfs2_sbd *)data;
struct gfs2_sbd *sdp = data;
struct gfs2_holder ji_gh;
unsigned long t;

Expand Down Expand Up @@ -159,7 +154,7 @@ int gfs2_logd(void *data)

int gfs2_quotad(void *data)
{
struct gfs2_sbd *sdp = (struct gfs2_sbd *)data;
struct gfs2_sbd *sdp = data;
unsigned long t;
int error;

Expand Down Expand Up @@ -209,7 +204,7 @@ int gfs2_quotad(void *data)

int gfs2_inoded(void *data)
{
struct gfs2_sbd *sdp = (struct gfs2_sbd *)data;
struct gfs2_sbd *sdp = data;
unsigned long t;
int error;

Expand Down

0 comments on commit 5a039d4

Please sign in to comment.