Linux bcache driver list
 help / color / mirror / Atom feed
* INFO: task bcache_writebac:1582 blocked for more than 120 seconds
@ 2014-06-11 14:48 Nik Martin
  2014-06-11 19:35 ` Pavel Goran
  0 siblings, 1 reply; 2+ messages in thread
From: Nik Martin @ 2014-06-11 14:48 UTC (permalink / raw)
  To: linux-bcache

I have been running bcache in writeback mode for a while, and had an
unclean shutdown due to a power outage.  Machine rebooted, did an
fsck, everything seemed ok, I had a few corrupt files that were open
when the shutdown happened, but no major deal.  Then, I started
getting hung tasks:

INFO: task bcache_writebac:1582 blocked for more than 120 seconds.
[ 1322.829907]       Tainted: P           O 3.14.6-201406110805nik-deb-dirty #1
[ 1322.829910] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 1322.829913] bcache_writebac D ffff8800b84db608     0  1582      2 0x00000000
[ 1322.829920]  ffff8800b84db1f0 0000000000000046 0000000000012e40
ffff880233d53230
[ 1322.829927]  0000000000012e40 ffff88023067bfd8 0000000000012e40
ffff8800b84db1f0
[ 1322.829933]  0000000000000000 ffff880230611bc0 ffff880233bc0000
ffffffff813568a0
[ 1322.829939] Call Trace:
[ 1322.829950]  [<ffffffff813568a0>] ? write_dirty+0xc0/0xc0
[ 1322.829958]  [<ffffffff8106b475>] ? kthread+0x95/0xe0
[ 1322.829963]  [<ffffffff81070000>] ? put_cred_rcu+0xa0/0xc0
[ 1322.829969]  [<ffffffff8106b3e0>] ? flush_kthread_worker+0x80/0x80
[ 1322.829976]  [<ffffffff8149147c>] ? ret_from_fork+0x7c/0xb0
[ 1322.829981]  [<ffffffff8106b3e0>] ? flush_kthread_worker+0x80/0x80

As you may notice, I'm on mainline kernel 3.14.6, which I built myself
thinking the issue could just be a bug in the version I'm running.  I
rebooted after building and installing, and the hung tasks came back 2
minutes after boot.

How can I disable bcache for now?  The instructions to install it a
pretty clear, but disabling it isn't.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: INFO: task bcache_writebac:1582 blocked for more than 120 seconds
  2014-06-11 14:48 INFO: task bcache_writebac:1582 blocked for more than 120 seconds Nik Martin
@ 2014-06-11 19:35 ` Pavel Goran
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Goran @ 2014-06-11 19:35 UTC (permalink / raw)
  To: linux-bcache

Hello Nik,

Wednesday, June 11, 2014, 9:48:20 PM, you wrote:

> I have been running bcache in writeback mode for a while, and had an
> unclean shutdown due to a power outage.  Machine rebooted, did an
> fsck, everything seemed ok, I had a few corrupt files that were open
> when the shutdown happened, but no major deal.  Then, I started
> getting hung tasks:

> INFO: task bcache_writebac:1582 blocked for more than 120 seconds.

This   looks   like   a   well-known   bug  that  manifests  itself  with  the
"bcache_writeback   locked"  messages.  It's  possible  that  your  cache  was
corrupted  and disabled because of this, and now the bcache_writeback task has
no  work to do and because of this the "locked" messages appear. (Personally I
get these messages when using a bcache device without cache.)

Bottom  line:  these  messages  probably  appear  because  bcache is *already*
disabled.

> How can I disable bcache for now?  The instructions to install it a
> pretty clear, but disabling it isn't.

Check whether cache is currently active:

cat /sys/block/bcache0/bcache/state

If it says "no cache", then there is no active cache on the bcache0 device. If
it says "clean", then the cache is there.

To  disable  bcache  for  the  device  bcache0 you need to issue the following
command:

echo "4faa930e-1983-45d3-ac40-e7dd0941d63c" | tee /sys/block/bcache0/bcache/detach

Substitute  "4faa930e-1983-45d3-ac40-e7dd0941d63c"  with  the ID of your cache
(you can find cache IDs by looking at the /sys/fs/bcache directory).

Pavel Goran
  

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-11 19:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-11 14:48 INFO: task bcache_writebac:1582 blocked for more than 120 seconds Nik Martin
2014-06-11 19:35 ` Pavel Goran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox