mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Bruno Prémont" <bonbons@linux-vserver.org>
To: Ed Cashin <ecashin@coraid.com>
Cc: apw@canonical.com, akpm@linux-foundation.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/1] aoe: ensure we initialise the request_queue correctly
Date: Sat, 29 Aug 2009 15:43:05 +0200	[thread overview]
Message-ID: <20090829154305.723fd86c@neptune.home> (raw)
In-Reply-To: <9ab0e087296715d764071d4d39542985@coraid.com>

On Mon, 24 August 2009 Ed Cashin <ecashin@coraid.com> wrote:
> On Fri Aug 21 12:41:59 EDT 2009, apw@canonical.com wrote:
> > We have been seeing oopses in very recent kernels when using the
> > AOE driver. When attempting to mount remote devices we get a
> > warning from the kobject layer:
> > 
> >   [ 2645.959090] kobject '<NULL>' (ffff880059ca22c0): tried to add
> > 	an uninitialized object, something is seriously wrong.
> > 
> > Looking at the driver it seems to have always had an embedded
> > request_queue and it is this that is throwing the error.  It
> > appears the intent is tha these would be allocated and released
> > using helpers, and the lack of these leaves the object
> > uninitialised and throws the error.  It is unclear how this could
> > ever have worked.
> 
> This aoe driver does not handle I/O requests but provides its own
> make_request function to blk_queue_make_request and handles bios
> instead.
> 
> The reason I was interested in a git bisect is that I suspect that
> before nobody was interested in the request_queue in the aoe driver
> until recent changes to kobject code.  A couple people have indicated
> that they'd be doing such a git bisect, so if anybody has done that,
> please Cc me.
> 
I finished bisecting the NULL object and ended up at this commit:
  cd43e26f071524647e660706b784ebcbefbd2e44

  block: Expose stacked device queues in sysfs

  Currently stacking devices do not have a queue directory in sysfs.
  However, many of the I/O characteristics like sector size, maximum
  request size, etc. are queue properties.

  This patch enables the queue directory for MD/DM devices.  The elevator
  code has been modified to deal with queues that do not have an I/O
  scheduler.

  Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  Signed-off-by: Jens Axboe <jens.axboe@oracle.com>


This seems to generate /sys/block/$device/queue and its contents for
everyone who is using queues, not just for those queues that have a
non-NULL queue->request_fn.

Bruno

  reply	other threads:[~2009-08-29 13:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-21 16:41 Andy Whitcroft
2009-08-21 16:41 ` [PATCH 1/1] " Andy Whitcroft
2009-08-21 18:58 ` [PATCH 0/1] " Ed Cashin
2009-08-22  9:21 ` Bruno Prémont
2009-08-22 21:52   ` Rafael J. Wysocki
2009-08-23  9:00     ` Bruno Prémont
2009-08-23 20:16       ` Bruno Prémont
2009-08-24 14:27 ` Ed Cashin
2009-08-29 13:43   ` Bruno Prémont [this message]
2009-09-01 19:15     ` Ed Cashin
2009-09-01 20:31       ` Bruno Prémont
2009-09-02 13:31         ` Ed Cashin
2009-09-02 19:55       ` Andrew Morton
2009-09-02 20:16         ` Ed Cashin

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=20090829154305.723fd86c@neptune.home \
    --to=bonbons@linux-vserver.org \
    --cc=akpm@linux-foundation.org \
    --cc=apw@canonical.com \
    --cc=ecashin@coraid.com \
    --cc=linux-kernel@vger.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

all inboxes | Powered by JetHome®