1
0
Fork 0

[PATCH] swapout oops fix

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 <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
hifive-unleashed-5.1
McMullan, Jason 2005-05-16 21:53:40 -07:00 committed by Linus Torvalds
parent 59afda786a
commit ba32311eb7
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}