Linux bcache driver list
 help / color / mirror / Atom feed
From: Kent Overstreet <kmo-PEzghdH756F8UrSeD/g0lQ@public.gmane.org>
To: Ben Hutchings <ben-/+tVBieCtBitmTQ+vhA3Yw@public.gmane.org>
Cc: Jarno Elonen
	<jarno.elonen-DbzOA/0qlwOT8k0kg1mbHA@public.gmane.org>,
	linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	715019-61a8vm9lEZVf4u+23C9RwQ@public.gmane.org,
	lvm2-R+A61+qa7K2F9N/2sQ04j0B+6BGkLq7r@public.gmane.org
Subject: Re: Bug#715019: linux-image-3.10-rc7-amd64: Bcache (with cache on LVM?) stops system from shutting down
Date: Wed, 10 Jul 2013 16:00:38 -0700	[thread overview]
Message-ID: <20130710230038.GB13527@kmo-pixel> (raw)
In-Reply-To: <1373496148.24446.21.camel-nDn/Rdv9kqW9Jme8/bJn5UCKIB8iOfG2tUK59QYPAWc@public.gmane.org>

On Wed, Jul 10, 2013 at 11:42:28PM +0100, Ben Hutchings wrote:
> On Mon, 2013-07-08 at 19:56 +0300, Jarno Elonen wrote:
> > Ok, I tried to take a photo but apparently the camera was set for very
> > low resolution. :/ Anyway, a few pictures attached, and here's also a
> > manual transcript of a few lines:
> [...]
> > [242866.xxxxxx] ata5.00: exception Emask 0x0 SAct 0x0 SError 0x0
> > action 0x6 frozen
> > [242866.xxxxxx] ata5.00: failed command: FLUSH CACHE EXT
> > [242866.xxxxxx] ata8.00: exception Emask 0x0 SAct 0x0 SError 0x0
> > action 0x6 frozen
> > [242866.xxxxxx] ata8.00: failed command: FLUSH CACHE EXT
> > [242866.xxxxxx] ata8.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 0
> > [242866.xxxxxx]          res 40/00:ff:00:00:00/00:00:00:00:00/00 Emask
> > 0x4 (timeout)
> > [242866.xxxxxx] ata8.00: status { DRDY }
> > [242867.xxxxxx] ata5.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 0
> > ...
> > [242877.xxxxxx] ata3: COMRESET failed (errno=-16)
> > [242877.xxxxxx] ata5: COMRESET failed (errno=-16)
> > ...
> > 
> > These kinds of splurs com up once in a minute or so.
> 
> This suggests to me that LVM is *not* part of the problem, but instead
> the disks are being shut down before bcache has been quiesced.
> 
> bcache developers - is this supposed to just work, or does the init
> system need to do (or not do) something special for bcache devices?

This is supposed to work - bcache has a reboot notifier, which shuts
stuff down.

I _suspect_ what might be going on (I've seen the same issue myself with
bcache + md) is stacked block devices breaks it - which makes sense; the
block devices have to be torn down in the right order (because they
depend on each other) but the reboot notifier stuff just runs all the
notifiers one after the other, synchronously. And I can't just put the
asynchronous magic in the bcache code because, well, returning from our
notifier is how the core stuff knows that everything should be done
shutting down that can be.

I haven't actually tried to look and check that this is what's going on,
but if it is the right solution is for the reboot notifier to run all
the callbacks asynchronously.

      parent reply	other threads:[~2013-07-10 23:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20130705135658.9757.33407.reportbug@domo-b>
     [not found] ` <20130705184222.GX4752@decadent.org.uk>
     [not found]   ` <CAL3dRBXX8Ex3iNE1v8N4pswqwh08enGPih0sP_ubpqUmbctdHA@mail.gmail.com>
     [not found]     ` <CAL3dRBXX8Ex3iNE1v8N4pswqwh08enGPih0sP_ubpqUmbctdHA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-10 22:42       ` Bug#715019: linux-image-3.10-rc7-amd64: Bcache (with cache on LVM?) stops system from shutting down Ben Hutchings
     [not found]         ` <1373496148.24446.21.camel-nDn/Rdv9kqW9Jme8/bJn5UCKIB8iOfG2tUK59QYPAWc@public.gmane.org>
2013-07-10 23:00           ` Kent Overstreet [this message]

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=20130710230038.GB13527@kmo-pixel \
    --to=kmo-pezghdh756f8ursed/g0lq@public.gmane.org \
    --cc=715019-61a8vm9lEZVf4u+23C9RwQ@public.gmane.org \
    --cc=ben-/+tVBieCtBitmTQ+vhA3Yw@public.gmane.org \
    --cc=jarno.elonen-DbzOA/0qlwOT8k0kg1mbHA@public.gmane.org \
    --cc=linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=lvm2-R+A61+qa7K2F9N/2sQ04j0B+6BGkLq7r@public.gmane.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