|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 8/8] bio-cgroup: Add a cgroup support to dm-ioband
To: |
linux-kernel@xxxxxxxxxxxxxxx, dm-devel@xxxxxxxxxx, containers@xxxxxxxxxxxxxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx |
Subject: |
[Xen-devel] [PATCH 8/8] bio-cgroup: Add a cgroup support to dm-ioband |
From: |
Ryo Tsuruta <ryov@xxxxxxxxxxxxx> |
Date: |
Thu, 13 Nov 2008 12:15:38 +0900 (JST) |
Cc: |
fernando@xxxxxxxxxxxxx, balbir@xxxxxxxxxxxxxxxxxx, xemul@xxxxxxxxxx, kamezawa.hiroyu@xxxxxxxxxxxxxx, agk@xxxxxxxxxxxxxx |
Delivery-date: |
Wed, 12 Nov 2008 19:20:21 -0800 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<20081113.121507.722554765817591488.ryov@xxxxxxxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<20081113.121357.75173118738921642.ryov@xxxxxxxxxxxxx> <20081113.121433.632868945383117577.ryov@xxxxxxxxxxxxx> <20081113.121507.722554765817591488.ryov@xxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
With this patch, dm-ioband can work with the bio cgroup.
Signed-off-by: Hirokazu Takahashi <taka@xxxxxxxxxxxxx>
diff -dupr linux-2.6.28-rc2.bc3/drivers/md/dm-ioband-type.c
linux-2.6.28-rc2/drivers/md/dm-ioband-type.c
--- linux-2.6.28-rc2.bc3/drivers/md/dm-ioband-type.c 2008-11-12
11:22:19.000000000 +0900
+++ linux-2.6.28-rc2/drivers/md/dm-ioband-type.c 2008-11-12
11:23:18.000000000 +0900
@@ -6,6 +6,7 @@
* This file is released under the GPL.
*/
#include <linux/bio.h>
+#include <linux/biotrack.h>
#include "dm.h"
#include "dm-bio-list.h"
#include "dm-ioband.h"
@@ -53,13 +54,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);
}
struct group_type dm_ioband_group_type[] = {
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|