From: Hirokazu Takahashi <taka@valinux.co.jp>
To: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
containers@lists.linux-foundation.org
Subject: [PATCH 4/4] Block I/O tracking
Date: Tue, 18 Mar 2008 18:31:48 +0900 (JST) [thread overview]
Message-ID: <20080318.183148.87079095.taka@valinux.co.jp> (raw)
In-Reply-To: <20080318.182251.93858044.taka@valinux.co.jp>
Hi,
With this patch, dm-ioband can work with the bio cgroup.
Signed-off-by: Hirokazu Takahashi <taka@valinux.co.jp>
--- linux-2.6.25-rc3.ioload/drivers/md/dm-ioband-type.c 2008-03-13 22:27:45.000000000 +0900
+++ linux-2.6.25-rc3-mm1/drivers/md/dm-ioband-type.c 2008-03-17 15:57:32.000000000 +0900
@@ -6,6 +6,7 @@
* This file is released under the GPL.
*/
#include <linux/bio.h>
+#include <linux/biocontrol.h>
#include "dm.h"
#include "dm-bio-list.h"
#include "dm-ioband.h"
@@ -57,13 +58,7 @@ static int ioband_node(struct bio *bio)
static int ioband_cgroup(struct bio *bio)
{
- /*
- * This function should return the ID of the cgroup which issued "bio".
- * The ID of the cgroup which the current process belongs to won't be
- * suitable ID for this purpose, since some BIOs will be handled by kernel
- * threads like aio or pdflush on behalf of the process requesting the BIOs.
- */
- return 0; /* not implemented yet */
+ return get_bio_cgroup_id(bio->bi_io_vec[0].bv_page);
}
struct group_type dm_ioband_group_type[] = {
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-03-18 9:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-18 9:22 [PATCH O/4] " Hirokazu Takahashi
2008-03-18 9:25 ` [PATCH 1/4] " Hirokazu Takahashi
2008-03-18 10:25 ` KAMEZAWA Hiroyuki
2008-03-18 9:29 ` [PATCH 2/4] " Hirokazu Takahashi
2008-03-18 10:22 ` KAMEZAWA Hiroyuki
2008-03-18 11:34 ` Hirokazu Takahashi
2008-03-18 11:55 ` KAMEZAWA Hiroyuki
2008-03-18 12:15 ` Hirokazu Takahashi
2008-03-18 9:30 ` [PATCH 3/4] " Hirokazu Takahashi
2008-03-18 9:31 ` Hirokazu Takahashi [this message]
2008-03-18 10:16 ` [PATCH O/4] " KAMEZAWA Hiroyuki
2008-03-19 3:59 ` Hirokazu Takahashi
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=20080318.183148.87079095.taka@valinux.co.jp \
--to=taka@valinux.co.jp \
--cc=containers@lists.linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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