Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143329
b: refs/heads/master
c: 053c525
h: refs/heads/master
i:
  143327: be3d457
v: v3
  • Loading branch information
Jens Axboe committed Apr 15, 2009
1 parent 02c9b7c commit 8551998
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: 329007ce25d56fc7113df7b4828d607806d8bc21
refs/heads/master: 053c525fcf976810f023d96472f414c0d5e6339b
11 changes: 9 additions & 2 deletions trunk/fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ static int osync_buffers_list(spinlock_t *lock, struct list_head *list)
return err;
}

void do_thaw_all(unsigned long unused)
void do_thaw_all(struct work_struct *work)
{
struct super_block *sb;
char b[BDEVNAME_SIZE];
Expand All @@ -567,6 +567,7 @@ void do_thaw_all(unsigned long unused)
goto restart;
}
spin_unlock(&sb_lock);
kfree(work);
printk(KERN_WARNING "Emergency Thaw complete\n");
}

Expand All @@ -577,7 +578,13 @@ void do_thaw_all(unsigned long unused)
*/
void emergency_thaw_all(void)
{
pdflush_operation(do_thaw_all, 0);
struct work_struct *work;

work = kmalloc(sizeof(*work), GFP_ATOMIC);
if (work) {
INIT_WORK(work, do_thaw_all);
schedule_work(work);
}
}

/**
Expand Down

0 comments on commit 8551998

Please sign in to comment.