mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: Tejun Heo <tj@kernel.org>, Jens Axboe <jaxboe@fusionio.com>
Cc: linux-kernel@vger.kernel.org
Subject: WARNING: at block/blk-cgroup.c:867
Date: Fri, 1 Jun 2012 13:29:55 +0200	[thread overview]
Message-ID: <20120601112954.GC3535@osiris.boeblingen.de.ibm.com> (raw)

Hi Tejun,

for !CONFIG_CFQ_GROUP_IOSCHED the following warning triggered on s390:

------------[ cut here ]------------
WARNING: at block/blk-cgroup.c:867
Modules linked in:
Modules linked in:
CPU: 3 Not tainted 3.4.0-09547-gfb21aff #1
Process swapper/0 (pid: 1, task: 000000003ff80000, ksp: 000000003ff7f8b8)
Krnl PSW : 0704100180000000 00000000003d76ca (blkcg_policy_register+0xca/0xe0)
           R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:0 CC:1 PM:0 EA:3
Krnl GPRS: 0000000000000000 00000000014b85ec 00000000014b85b0 0000000000000000
           000000000096fb60 0000000000000000 00000000009a8e78 0000000000000048
           000000000099c070 0000000000b6f000 0000000000000000 000000000099c0b8
           00000000014b85b0 0000000000667580 000000003ff7fd98 000000003ff7fd70
Krnl Code: 00000000003d76be: a7280001           lhi     %r2,1
           00000000003d76c2: a7f4ffdf           brc     15,3d7680
          #00000000003d76c6: a7f40001           brc     15,3d76c8
          >00000000003d76ca: a7c8ffea           lhi     %r12,-22
           00000000003d76ce: a7f4ffce           brc     15,3d766a
           00000000003d76d2: a7f40001           brc     15,3d76d4
           00000000003d76d6: a7c80000           lhi     %r12,0
           00000000003d76da: a7f4ffc2           brc     15,3d765e
Call Trace:
([<0000000000b6f000>] initcall_debug+0x0/0x4)
 [<0000000000989e8a>] cfq_init+0x62/0xd4
 [<00000000001000ba>] do_one_initcall+0x3a/0x170
 [<000000000096fb60>] kernel_init+0x214/0x2bc
 [<0000000000623202>] kernel_thread_starter+0x6/0xc
 [<00000000006231fc>] kernel_thread_starter+0x0/0xc
no locks held by swapper/0/1.
Last Breaking-Event-Address:
 [<00000000003d76c6>] blkcg_policy_register+0xc6/0xe0
---[ end trace b8ef4903fcbf9dd3 ]---

for !CONFIG_CFQ_GROUP_IOSCHED the blkcg_policy_cfq that cfq_init() tries to
register with blkcg_policy_register() is in the bss section and therefore
initialized with 0.

So the warning in blkcg_policy_register()

	if (WARN_ON(pol->pd_size < sizeof(struct blkg_policy_data)))
		return -EINVAL;

will trigger since pd_size == 0.


             reply	other threads:[~2012-06-01 11:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-01 11:29 Heiko Carstens [this message]
2012-06-04  4:30 ` [PATCH 1/2] block: fix return value on cfq_init() failure Tejun Heo
2012-06-04  4:31   ` [PATCH 2/2] block: blkcg_policy_cfq shouldn't be used if !CONFIG_CFQ_GROUP_IOSCHED Tejun Heo
2012-06-04 13:23     ` Jens Axboe

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=20120601112954.GC3535@osiris.boeblingen.de.ibm.com \
    --to=heiko.carstens@de.ibm.com \
    --cc=jaxboe@fusionio.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tj@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

Powered by JetHome