LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "McMullan, Jason" <jason.mcmullan@timesys.com>
To: "PPC_LINUX" <linuxppc-embedded@ozlabs.org>,
	"Linux Kernel" <linux-kernel@vger.kernel.org>
Subject: [PATCH 2.6.11.7] Swapping OOPS fix for ATA Over Ethernet
Date: Fri, 13 May 2005 13:24:30 -0400
Date: Fri, 13 May 2005 13:18:40 -0400	[thread overview]
Message-ID: <1116005072.9050.86.camel@jmcmullan.timesys> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 163 bytes --]

This patch fixes swapping for devices that do not need to define an
unplug_io_fn().


-- 
Jason McMullan <jason.mcmullan@timesys.com>
TimeSys Corporation


[-- Attachment #1.2: swapping-unplug-oops.patch --]
[-- Type: text/x-patch, Size: 456 bytes --]

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

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

                 reply	other threads:[~2005-05-13 17:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1116005072.9050.86.camel@jmcmullan.timesys \
    --to=jason.mcmullan@timesys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox