From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kent Overstreet Subject: Re: Fwd: Bug#715019: linux-image-3.10-rc7-amd64: Bcache (with cache on LVM?) stops system from shutting down Date: Tue, 16 Jul 2013 14:42:05 -0700 Message-ID: <20130716214205.GB2724@kmo-pixel> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-bcache-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Josep Lladonosa Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-bcache@vger.kernel.org On Sun, Jul 14, 2013 at 01:24:24PM +0200, Josep Lladonosa wrote: > ---------- Forwarded message ---------- > From: Josep Lladonosa > Date: 14 July 2013 13:23 > Subject: Re: Bug#715019: linux-image-3.10-rc7-amd64: Bcache (with cache on > LVM?) stops system from shutting down > To: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > > > Hello, > > I have added new info to this bug. Forward it to this list: > > To: 715019-61a8vm9lEZVf4u+23C9RwQ@public.gmane.org > Subject: Bug#715019: linux-image-3.10-rc7-amd64: Bcache (with cache on LVM?) > stops system from shutting down > From: Josep Lladonosa > Date: Sun, 14 Jul 2013 00:55:00 +0200 > Message-id: > > Reply-to: Josep Lladonosa , 715019-61a8vm9lEZVf4u+23C9RwQ@public.gmane.org > > ________________________________ > Hello, > > I would like to comment that the same behaviour is happening to my system. > > > Root filesystem is ext3 on /dev/bcache0, which works with /dev/sda3 as the > backing partition and /dev/sdb as the cache disk (it is an msata version). > (System was on LVM before, but changed it to ext3 to keep it easier for the > bcache). > > bcache is not shutting down well, and the system cannot shutdown,reboot, > suspend, hibernate. > When shutting down, messages are like: > > ... > mei_me 000:00:16:0:stop > exception Emask 0x0 SACT 0x3 SErr 0x0 action 0x6 frozen > failed command: WRITE FPDMA QUEUED > ata3.00: cmd 61/08:00:60:6d:0e/00:00:00:00:00/40 tag 0 ncq 4096 out > res 40:00:f4:00:00:00/00:00:00:00:00/40 Emask 0x4 (timeout) > ata 3.00: status: {DRDY} > ata3: COMRESET failed (errno=-16) > end_request: I/O error, dev sdb, sector xxxxxx > bcache: bch_count_io_error() sdb: > IO error on writing btree, recovering > I/O error, dev sdb, sector xxxxxx > ... > > And keeps pausing and showing messages... > > I wish that this info helps to find a solution... Hrm, wonder what's causing the IO errors... I did fix the reboot notifier the other day, can you try either my bcache-for-3.10 or bcache-for-3.11 branches? That should fix shutdown and reboot. Suspend and hibernate should be fixed in the for-3.11 branch, but I think I'll need to backport a freezer fix for it to work in 3.10...