From: Kevin Corry <kevcorry@us.ibm.com>
To: torvalds@osdl.org, akpm@zip.com.au, thornber@sistina.com
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] DM 4/6: Return table status for dev_wait
Date: Mon, 22 Sep 2003 10:52:32 -0500 [thread overview]
Message-ID: <200309221052.32601.kevcorry@us.ibm.com> (raw)
In-Reply-To: <200309221044.21694.kevcorry@us.ibm.com>
dev_wait was meant to return table status not dev status. [Alasdair Kergon]
--- diff/drivers/md/dm-ioctl-v4.c 2003-09-17 13:09:04.000000000 +0100
+++ source/drivers/md/dm-ioctl-v4.c 2003-09-17 13:09:26.000000000 +0100
@@ -769,6 +769,7 @@
{
int r;
struct mapped_device *md;
+ struct dm_table *table;
DECLARE_WAITQUEUE(wq, current);
md = find_device(param);
@@ -791,7 +792,16 @@
* him and save an ioctl.
*/
r = __dev_status(md, param);
+ if (r)
+ goto out;
+
+ table = dm_get_table(md);
+ if (table) {
+ retrieve_status(table, param, param_size);
+ dm_table_put(table);
+ }
+ out:
dm_put(md);
return r;
}
next prev parent reply other threads:[~2003-09-22 15:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-22 15:44 2.6.0-test5-mm2 Device Mapper Patches Kevin Corry
2003-09-22 15:51 ` [PATCH] DM 1/6: Use new format_dev_t macro Kevin Corry
2003-09-22 19:29 ` viro
2003-09-23 7:57 ` Joe Thornber
2003-09-23 7:57 ` viro
2003-09-23 14:07 ` Kevin Corry
2003-09-22 15:51 ` [PATCH] DM 2/6: Drop extra table ref-count Kevin Corry
2003-09-22 15:52 ` [PATCH] DM 3/6: Move retrieve_status function Kevin Corry
2003-09-22 15:52 ` Kevin Corry [this message]
2003-09-22 15:52 ` [PATCH] DM 5/6: Message fix in dm-linear Kevin Corry
2003-09-22 15:53 ` [PATCH] DM 6/6: Support arbitrary number of target params Kevin Corry
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=200309221052.32601.kevcorry@us.ibm.com \
--to=kevcorry@us.ibm.com \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=thornber@sistina.com \
--cc=torvalds@osdl.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