diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-26 19:03:04 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-26 19:03:04 -0400 |
| commit | 86d9c070175de65890794fa227b68297da6206d8 (patch) | |
| tree | 1aa4f1d1ecf397bd0d745a67b9d828420a99a8b4 /fs/super.c | |
| parent | 413e3376485e6cf81f4cf6a4dbc0de0326535093 (diff) | |
| parent | a2a9537ac0b37a5da6fbe7e1e9cb06c524d2a9c4 (diff) | |
Merge branch 'for-2.6.30' of git://git.kernel.dk/linux-2.6-block
* 'for-2.6.30' of git://git.kernel.dk/linux-2.6-block:
Get rid of pdflush_operation() in emergency sync and remount
btrfs: get rid of current_is_pdflush() in btrfs_btree_balance_dirty
Move the default_backing_dev_info out of readahead.c and into backing-dev.c
block: Repeated lines in switching-sched.txt
bsg: Remove bogus check against request_queue->max_sectors
block: WARN in __blk_put_request() for potential bio leak
loop: fix circular locking in loop_clr_fd()
loop: support barrier writes
bsg: add support for tail queuing
cpqarray: enable bus mastering
block: genhd.h cleanup patch
block: add private bio_set for bio integrity allocations
block: genhd.h comment needs updating
block: get rid of unused blkdev_free_rq() define
block: remove various blk_queue_*() setting functions in blk_init_queue_node()
cciss: add BUILD_BUG_ON() for catching bad CommandList_struct alignment
block: don't create bio_vec slabs of less than the inline number
block: cleanup bio_alloc_bioset()
Diffstat (limited to 'fs/super.c')
| -rw-r--r-- | fs/super.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/super.c b/fs/super.c index 6ce501447ada..dd4acb158b5e 100644 --- a/fs/super.c +++ b/fs/super.c | |||
| @@ -674,7 +674,7 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force) | |||
| 674 | return 0; | 674 | return 0; |
| 675 | } | 675 | } |
| 676 | 676 | ||
| 677 | static void do_emergency_remount(unsigned long foo) | 677 | static void do_emergency_remount(struct work_struct *work) |
| 678 | { | 678 | { |
| 679 | struct super_block *sb; | 679 | struct super_block *sb; |
| 680 | 680 | ||
| @@ -697,12 +697,19 @@ static void do_emergency_remount(unsigned long foo) | |||
| 697 | spin_lock(&sb_lock); | 697 | spin_lock(&sb_lock); |
| 698 | } | 698 | } |
| 699 | spin_unlock(&sb_lock); | 699 | spin_unlock(&sb_lock); |
| 700 | kfree(work); | ||
| 700 | printk("Emergency Remount complete\n"); | 701 | printk("Emergency Remount complete\n"); |
| 701 | } | 702 | } |
| 702 | 703 | ||
| 703 | void emergency_remount(void) | 704 | void emergency_remount(void) |
| 704 | { | 705 | { |
| 705 | pdflush_operation(do_emergency_remount, 0); | 706 | struct work_struct *work; |
| 707 | |||
| 708 | work = kmalloc(sizeof(*work), GFP_ATOMIC); | ||
| 709 | if (work) { | ||
| 710 | INIT_WORK(work, do_emergency_remount); | ||
| 711 | schedule_work(work); | ||
| 712 | } | ||
| 706 | } | 713 | } |
| 707 | 714 | ||
| 708 | /* | 715 | /* |
