Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251736
b: refs/heads/master
c: e1290b3
h: refs/heads/master
v: v3
  • Loading branch information
Lukas Czerner authored and Theodore Ts'o committed May 20, 2011
1 parent ecd70a0 commit 3f7309e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 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: 4ed5c033c11b33149d993734a6a8de1016e8f03f
refs/heads/master: e1290b3e62c496ade19939ce036f35bb69306820
2 changes: 0 additions & 2 deletions trunk/fs/ext4/ext4.h
Original file line number Diff line number Diff line change
Expand Up @@ -1605,8 +1605,6 @@ void ext4_get_group_no_and_offset(struct super_block *sb, ext4_fsblk_t blocknr,
*/
struct ext4_lazy_init {
unsigned long li_state;
wait_queue_head_t li_wait_task;
struct task_struct *li_task;
struct list_head li_request_list;
struct mutex li_list_mtx;
};
Expand Down
10 changes: 0 additions & 10 deletions trunk/fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2768,9 +2768,6 @@ static int ext4_lazyinit_thread(void *arg)

BUG_ON(NULL == eli);

eli->li_task = current;
wake_up(&eli->li_wait_task);

cont_thread:
while (true) {
next_wakeup = MAX_JIFFY_OFFSET;
Expand Down Expand Up @@ -2833,9 +2830,6 @@ static int ext4_lazyinit_thread(void *arg)
goto cont_thread;
}
mutex_unlock(&eli->li_list_mtx);
eli->li_task = NULL;
wake_up(&eli->li_wait_task);

kfree(ext4_li_info);
ext4_li_info = NULL;
mutex_unlock(&ext4_li_mtx);
Expand Down Expand Up @@ -2872,8 +2866,6 @@ static int ext4_run_lazyinit_thread(void)
return err;
}
ext4_li_info->li_state |= EXT4_LAZYINIT_RUNNING;

wait_event(ext4_li_info->li_wait_task, ext4_li_info->li_task != NULL);
return 0;
}

Expand Down Expand Up @@ -2908,11 +2900,9 @@ static int ext4_li_info_new(void)
if (!eli)
return -ENOMEM;

eli->li_task = NULL;
INIT_LIST_HEAD(&eli->li_request_list);
mutex_init(&eli->li_list_mtx);

init_waitqueue_head(&eli->li_wait_task);
eli->li_state |= EXT4_LAZYINIT_QUIT;

ext4_li_info = eli;
Expand Down

0 comments on commit 3f7309e

Please sign in to comment.