This patch fixes swapping for devices that do not need to define an unplug_io_fn(). -- Jason McMullan <[email protected]> TimeSys Corporation
Description: Fix OOPS when swapping on a device that doesn't have an unplug_io_fn defined (ie, ATA Over Ethernet) Signed-Off-By: Jason McMullan <[email protected]> --- linux-orig/mm/swapfile.c +++ linux/mm/swapfile.c @@ -80,7 +80,7 @@ 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); }
Attachment:
signature.asc
Description: This is a digitally signed message part
- Prev by Date: Re: [PATCH] namespace.c: fix bind mount from foreign namespace
- Next by Date: Re: [Lse-tech] Re: [PATCH] cpusets+hotplug+preepmt broken
- Previous by thread: [PATCH 2.6.11.7] ATA Over Ethernet Root
- Next by thread: [PATCH 2.6.11.7] ATA-Over-Ethernet Root device
- Index(es):