From: Alasdair G Kergon <agk@redhat.com>
To: Andrew Morton <akpm@osdl.org>
Cc: laurent.riffard@free.fr, linux-kernel@vger.kernel.org,
Felipe Alfaro Solana <felipe.alfaro@gmail.com>
Subject: [PATCH] device-mapper: Fix target suspension oops.
Date: Tue, 12 Jul 2005 22:24:49 +0100 [thread overview]
Message-ID: <20050712212449.GK12337@agk.surrey.redhat.com> (raw)
In-Reply-To: <20050712140248.3cdcb9b8.akpm@osdl.org>
This section got lost while refactoring the 'Fix deadlocks in core' set
of patches I sent yesterday. Without it, you'll have problems
activating any device-mapper devices.
The NULL detection is moved inside the functions instead of every
caller having to do it.
--- drivers/md/dm-table.c 2005-07-12 22:10:20.000000000 +0100
+++ /data/kernels/pm-2612udm1/source/drivers/md/dm-table.c 2005-07-06 18:52:18.000000000 +0100
@@ -869,11 +869,17 @@
void dm_table_presuspend_targets(struct dm_table *t)
{
+ if (!t)
+ return;
+
return suspend_targets(t, 0);
}
void dm_table_postsuspend_targets(struct dm_table *t)
{
+ if (!t)
+ return;
+
return suspend_targets(t, 1);
}
next prev parent reply other threads:[~2005-07-12 21:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-12 9:17 2.6.13-rc2-mm2 Andrew Morton
2005-07-12 11:05 ` 2.6.13-rc2-mm2 Adrian Bunk
2005-07-12 12:01 ` 2.6.13-rc2-mm2 David Woodhouse
2005-07-12 12:12 ` 2.6.13-rc2-mm2 Adrian Bunk
2005-07-12 18:16 ` 2.6.13-rc2-mm2 Felipe Alfaro Solana
2005-07-12 20:24 ` 2.6.13-rc2-mm2 Alasdair G Kergon
2005-07-13 9:29 ` 2.6.13-rc2-mm2 Felipe Alfaro Solana
2005-07-12 18:52 ` 2.6.13-rc2-mm2 : oops in dm_mod Laurent Riffard
2005-07-12 20:45 ` Mike Anderson
2005-07-12 20:47 ` Alasdair G Kergon
2005-07-12 21:02 ` Andrew Morton
2005-07-12 21:24 ` Alasdair G Kergon [this message]
2005-07-12 21:48 ` [PATCH] device-mapper: Fix target suspension oops Laurent Riffard
2005-07-14 3:04 ` 2.6.13-rc2-mm2 Matthias Urlichs
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=20050712212449.GK12337@agk.surrey.redhat.com \
--to=agk@redhat.com \
--cc=akpm@osdl.org \
--cc=felipe.alfaro@gmail.com \
--cc=laurent.riffard@free.fr \
--cc=linux-kernel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).