Skip to content

Commit

Permalink
[PATCH] swapout oops fix
Browse files Browse the repository at this point in the history
Fix OOPS when swapping on a device that doesn't have an unplug_io_fn defined
(eg, ATA Over Ethernet)

Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
McMullan, Jason authored and Linus Torvalds committed May 17, 2005
1 parent 59afda7 commit ba32311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/swapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void swap_unplug_io_fn(struct backing_dev_info *unused_bdi, struct page *page)
WARN_ON(page_count(page) <= 1);

bdi = bdev->bd_inode->i_mapping->backing_dev_info;
bdi->unplug_io_fn(bdi, page);
blk_run_backing_dev(bdi, page);
}
up_read(&swap_unplug_sem);
}
Expand Down

0 comments on commit ba32311

Please sign in to comment.