From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753577AbZEFIMJ (ORCPT ); Wed, 6 May 2009 04:12:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751978AbZEFILw (ORCPT ); Wed, 6 May 2009 04:11:52 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:58679 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751021AbZEFILv (ORCPT ); Wed, 6 May 2009 04:11:51 -0400 Message-ID: <4A014619.1040000@cn.fujitsu.com> Date: Wed, 06 May 2009 16:11:05 +0800 From: Gui Jianfeng User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 To: Vivek Goyal CC: nauman@google.com, dpshah@google.com, lizf@cn.fujitsu.com, mikew@google.com, fchecconi@gmail.com, paolo.valente@unimore.it, jens.axboe@oracle.com, ryov@valinux.co.jp, fernando@oss.ntt.co.jp, s-uchida@ap.jp.nec.com, taka@valinux.co.jp, jmoyer@redhat.com, dhaval@linux.vnet.ibm.com, balbir@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, containers@lists.linux-foundation.org, righi.andrea@gmail.com, agk@redhat.com, dm-devel@redhat.com, snitzer@redhat.com, m-ikeda@ds.jp.nec.com, akpm@linux-foundation.org Subject: Re: IO scheduler based IO Controller V2 References: <1241553525-28095-1-git-send-email-vgoyal@redhat.com> In-Reply-To: <1241553525-28095-1-git-send-email-vgoyal@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vivek Goyal wrote: > Hi All, > > Here is the V2 of the IO controller patches generated on top of 2.6.30-rc4. > First version of the patches was posted here. Hi Vivek, I did some simple test for V2, and triggered an kernel panic. The following script can reproduce this bug. It seems that the cgroup is already removed, but IO Controller still try to access into it. #!/bin/sh echo 1 > /proc/sys/vm/drop_caches mkdir /cgroup 2> /dev/null mount -t cgroup -o io,blkio io /cgroup mkdir /cgroup/test1 mkdir /cgroup/test2 echo 100 > /cgroup/test1/io.weight echo 500 > /cgroup/test2/io.weight ./rwio -w -f 2000M.1 & //do async write pid1=$! echo $pid1 > /cgroup/test1/tasks ./rwio -w -f 2000M.2 & pid2=$! echo $pid2 > /cgroup/test2/tasks sleep 10 kill -9 $pid1 kill -9 $pid2 sleep 1 echo ====== cat /cgroup/test1/io.disk_time cat /cgroup/test2/io.disk_time echo ====== cat /cgroup/test1/io.disk_sectors cat /cgroup/test2/io.disk_sectors rmdir /cgroup/test1 rmdir /cgroup/test2 umount /cgroup rmdir /cgroup BUG: unable to handle kernel NULL pointer dereferec IP: [] cgroup_path+0xc/0x97 *pde = 64d2d067 Oops: 0000 [#1] SMP last sysfs file: /sys/block/md0/range Modules linked in: ipv6 cpufreq_ondemand acpi_cpufreq dm_mirror dm_multipath sbd Pid: 132, comm: kblockd/0 Not tainted (2.6.30-rc4-Vivek-V2 #1) Veriton M460 EIP: 0060:[] EFLAGS: 00010086 CPU: 0 EIP is at cgroup_path+0xc/0x97 EAX: 00000100 EBX: f60adca0 ECX: 00000080 EDX: f709fe28 ESI: f60adca8 EDI: f709fe28 EBP: 00000100 ESP: f709fdf0 DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 Process kblockd/0 (pid: 132, ti=f709f000 task=f70a8f60 task.ti=f709f000) Stack: f709fe28 f68c5698 f60adca0 f60adca8 f709fe28 f68de801 c04f5389 00000080 f68de800 f7094d0c f6a29118 f68bde00 00000016 c04f5e8d c04f5340 00000080 c0579fec f68c5e94 00000082 c042edb4 f68c5fd4 f68c5fd4 c080b520 00000082 Call Trace: [] ? io_group_path+0x6d/0x89 [] ? elv_ioq_served+0x2a/0x7a [] ? io_group_path+0x24/0x89 [] ? ide_build_dmatable+0xda/0x130 [] ? lock_timer_base+0x19/0x35 [] ? mod_timer+0x9f/0xa8 [] ? __delay+0x6/0x7 [] ? ide_execute_command+0x5d/0x71 [] ? ide_dma_intr+0x0/0x99 [] ? do_rw_taskfile+0x201/0x213 [] ? __elv_ioq_slice_expired+0x212/0x25e [] ? elv_fq_select_ioq+0x121/0x184 [] ? elv_select_sched_queue+0x1e/0x2e [] ? cfq_dispatch_requests+0xaa/0x238 [] ? elv_next_request+0x152/0x15f [] ? dequeue_task_fair+0x16/0x2d [] ? do_ide_request+0x10f/0x4c8 [] ? __schedule+0x845/0x893 [] ? lock_timer_base+0x19/0x35 [] ? del_timer+0x41/0x47 [] ? __generic_unplug_device+0x23/0x25 [] ? elv_kick_queue+0x19/0x28 [] ? worker_thread+0x11f/0x19e [] ? elv_kick_queue+0x0/0x28 [] ? autoremove_wake_function+0x0/0x2d [] ? worker_thread+0x0/0x19e [] ? kthread+0x42/0x67 [] ? kthread+0x0/0x67 [] ? kernel_thread_helper+0x7/0x10 Code: c0 84 c0 74 0e 89 d8 e8 7c e9 fd ff eb 05 bf fd ff ff ff e8 c0 ea ff ff 8 EIP: [] cgroup_path+0xc/0x97 SS:ESP 0068:f709fdf0 CR2: 000000000000011c ---[ end trace 2d4bc25a2c33e394 ]--- -- Regards Gui Jianfeng