lkml.org 
[lkml]   [2005]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 2.6.11.7] Swapping OOPS fix for ATA Over Ethernet
Date
From
This patch fixes swapping for devices that do not need to define an
unplug_io_fn().


--
Jason McMullan <jason.mcmullan@timesys.com>
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 <jason.mcmullan@timesys.com>

--- 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);
}[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-05-13 19:30    [W:0.032 / U:4.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site