All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ming Lin <mlin@kernel.org>
To: "Георгий Стариков" <gstarikov@gmail.com>
Cc: linux-bcache@vger.kernel.org
Subject: Re: cant mount bcachefs
Date: Wed, 29 Jul 2015 16:09:04 -0700	[thread overview]
Message-ID: <CAF1ivSagk2UWnx81XDhhS=sa3FezZVu11N06obbBMd_dtSS5PA@mail.gmail.com> (raw)
In-Reply-To: <CAOOKTyAb5Es0Wb=CTF0DeiUzkYvqjw0we0j_z6L+vbRqR1zvnw@mail.gmail.com>

On Wed, Jul 29, 2015 at 3:36 PM, Георгий Стариков <gstarikov@gmail.com> wrote:
> there is no messages in dmesg in case of mount attempt.
> after reboot dmesg contain many messages like this one:

I just tried to boot old bcache device with bcachefs kernel and it locked too.
If you just want to have a try bcachefs, you can do below to disable
register the old bcache device.

root@bee:/lib/udev/rules.d# ls *bcache*
69-bcache.rules
root@bee:/lib/udev/rules.d# mv 69-bcache.rules 69-bcache.rules.bak
root@bee:/lib/udev/rules.d# ls *bcache*
69-bcache.rules.bak


> [Пт. июля 17 13:11:50 2015] INFO: task bcache-register:340 blocked for
> more than 120 seconds.
> [Пт. июля 17 13:11:50 2015]       Tainted: G            E   4.1.0+ #1
> [Пт. июля 17 13:11:50 2015] "echo 0 >
> /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> [Пт. июля 17 13:11:50 2015] bcache-register D ffff88005fa0fbf8     0
> 340      1 0x00000004
> [Пт. июля 17 13:11:50 2015]  ffff88005fa0fbf8 ffffffff81c14580
> ffff88002d961420 ffff88005fa0fc28
> [Пт. июля 17 13:11:50 2015]  ffff88005fa10000 ffffffffc02536a4
> ffff88002d961420 00000000ffffffff
> [Пт. июля 17 13:11:50 2015]  ffffffffc02536a8 ffff88005fa0fc18
> ffffffff817d9367 ffff88006d260010
> [Пт. июля 17 13:11:50 2015] Call Trace:
> [Пт. июля 17 13:11:50 2015]  [<ffffffff817d9367>] schedule+0x37/0x90
> [Пт. июля 17 13:11:50 2015]  [<ffffffff817d96fe>]
> schedule_preempt_disabled+0xe/0x10
> [Пт. июля 17 13:11:50 2015]  [<ffffffff817db4f5>]
> __mutex_lock_slowpath+0x95/0x110
> [Пт. июля 17 13:11:50 2015]  [<ffffffff817d5487>] ? printk+0x46/0x48
> [Пт. июля 17 13:11:50 2015]  [<ffffffff817db593>] mutex_lock+0x23/0x40
> [Пт. июля 17 13:11:50 2015]  [<ffffffffc01f70bc>]
> bch_backing_dev_register+0x3ac/0x430 [bcache]
> [Пт. июля 17 13:11:50 2015]  [<ffffffffc022d0e5>]
> bch_register_one+0xf5/0x310 [bcache]
> [Пт. июля 17 13:11:50 2015]  [<ffffffffc022d362>]
> register_bcache+0x62/0xd0 [bcache]
> [Пт. июля 17 13:11:50 2015]  [<ffffffff81278c57>] kernfs_fop_write+0x127/0x180
> [Пт. июля 17 13:11:50 2015]  [<ffffffff811fc6f8>] __vfs_write+0x28/0xf0
> [Пт. июля 17 13:11:50 2015]  [<ffffffff811ff3ac>] ? __sb_start_write+0x4c/0x100
> [Пт. июля 17 13:11:50 2015]  [<ffffffff81322343>] ?
> security_file_permission+0x23/0xa0
> [Пт. июля 17 13:11:50 2015]  [<ffffffff811fce29>] vfs_write+0xa9/0x1b0
> [Пт. июля 17 13:11:50 2015]  [<ffffffff811fdbf6>] SyS_write+0x46/0xb0
> [Пт. июля 17 13:11:50 2015]  [<ffffffff81066f3f>] ? do_page_fault+0x2f/0x80
> [Пт. июля 17 13:11:50 2015]  [<ffffffff817dd932>] system_call_fastpath+0x16/0x75
>
>
> root@bcache:~# ps -ax | grep mount
>   999 ?        D      0:00 mount /dev/sdb /test_bcachefs/
>  1731 ?        S      0:00 strace -v mount /dev/sdd /test_bcachefs
>  1734 ?        D      0:00 mount /dev/sdd /test_bcachefs
>  1746 ?        S      0:00 strace -v -o bcache_mount_strace.txt mount
> /dev/sdd /test_bcachefs
>  1749 ?        D      0:00 mount /dev/sdd /test_bcachefs
>  2062 ?        D      0:00 mount -t bcache /dev/sdd /test_bcachefs
>  2197 pts/3    D+     0:00 mount /dev/sdd /test_bcachefs
>
> root@bcache:~# cat /proc/999/stack
> [<ffffffffc0229f01>] read_super+0x2d1/0x420 [bcache]
> [<ffffffffc022ce24>] bch_register_cache_set+0x104/0x2d0 [bcache]
> [<ffffffffc02146b3>] bch_mount+0x123/0x330 [bcache]
> [<ffffffff81200c78>] mount_fs+0x38/0x190
> [<ffffffff8121d65b>] vfs_kern_mount+0x6b/0x120
> [<ffffffff81220654>] do_mount+0x204/0xb60
> [<ffffffff812212cb>] SyS_mount+0x8b/0xd0
> [<ffffffff817dd932>] system_call_fastpath+0x16/0x75
> [<ffffffffffffffff>] 0xffffffffffffffff
>
>
> root@bcache:~# cat /proc/2197/stack
> [<ffffffffc0229f01>] read_super+0x2d1/0x420 [bcache]
> [<ffffffffc022ce24>] bch_register_cache_set+0x104/0x2d0 [bcache]
> [<ffffffffc02146b3>] bch_mount+0x123/0x330 [bcache]
> [<ffffffff81200c78>] mount_fs+0x38/0x190
> [<ffffffff8121d65b>] vfs_kern_mount+0x6b/0x120
> [<ffffffff81220654>] do_mount+0x204/0xb60
> [<ffffffff812212cb>] SyS_mount+0x8b/0xd0
> [<ffffffff817dd932>] system_call_fastpath+0x16/0x75
> [<ffffffffffffffff>] 0xffffffffffffffff
>
> 2015-07-29 23:16 GMT+03:00 Ming Lin <mlin@kernel.org>:
>> On Wed, Jul 29, 2015 at 10:36 AM, Георгий Стариков <gstarikov@gmail.com> wrote:
>>> Hello,
>>> I followed instruction at http://bcache.evilpiepirate.org/ and it cant mount...
>>> What I'm doing wrong?
>>>
>>>
>>> I make:
>>>
>>> git clone -b bcache-dev http://evilpiepirate.org/git/linux-bcache.git
>>> git clone -b dev http://evilpiepirate.org/git/bcache-tools.git
>>>
>>> cd bcache-tools/linux-bcache/
>>> make oldconfig
>>> make -j6 deb-pkg
>>> make -j6 modules_install
>>> make -j6 install
>>> reboot
>>>
>>> wipefs -a /dev/sdd
>>>
>>> Then, just run
>>>
>>> bcacheadm format -C /dev/sdd
>>> strace -v -o bcache_mount_strace.txt mount /dev/sdd /test_bcachefs
>>>
>>> and it hangup....
>>
>> Any message in dmesg?
>>
>> Could you do:
>>
>> cat  /proc/`pidof mount`/stack
>>
>>>
>>> root@bcache:~# tail bcache_mount_strace.txt
>>> geteuid()                               = 0
>>> getgid()                                = 0
>>> getegid()                               = 0
>>> prctl(PR_GET_DUMPABLE)                  = 1
>>> stat("/run", {st_dev=makedev(0, 18), st_ino=2625,
>>> st_mode=S_IFDIR|0755, st_nlink=23, st_uid=0, st_gid=0,
>>> st_blksize=4096, st_blocks=0, st_size=740,
>>> st_atime=2015/07/17-13:07:47, st_mtime=2015/07/29-14:20:25,
>>> st_ctime=2015/07/29-14:20:25}) = 0
>>> lstat("/etc/mtab", {st_dev=makedev(8, 1), st_ino=131233,
>>> st_mode=S_IFLNK|0777, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096,
>>> st_blocks=0, st_size=12, st_atime=2015/07/29-06:40:34,
>>> st_mtime=2015/07/12-10:40:12, st_ctime=2015/07/12-10:40:12}) = 0
>>> lstat("/run/mount/utab", {st_dev=makedev(0, 18), st_ino=1968,
>>> st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096,
>>> st_blocks=0, st_size=0, st_atime=2015/07/17-13:10:49,
>>> st_mtime=2015/07/17-13:10:49, st_ctime=2015/07/17-13:10:49}) = 0
>>> open("/run/mount/utab", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 3
>>> close(3)                                = 0
>>> mount("/dev/sdd", "/test_bcachefs", "bcache", MS_MGC_VAL, NULL

  parent reply	other threads:[~2015-07-29 23:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAOOKTyBohkud24RBZegyHhEqpo+FV6H-o2MgPyr+CVvSvc1s-A@mail.gmail.com>
2015-07-29 17:36 ` Fwd: cant mount bcachefs Георгий Стариков
2015-07-29 20:16   ` Ming Lin
     [not found]     ` <CAOOKTyAb5Es0Wb=CTF0DeiUzkYvqjw0we0j_z6L+vbRqR1zvnw@mail.gmail.com>
2015-07-29 23:09       ` Ming Lin [this message]
2015-07-30  0:05         ` Георгий Стариков

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='CAF1ivSagk2UWnx81XDhhS=sa3FezZVu11N06obbBMd_dtSS5PA@mail.gmail.com' \
    --to=mlin@kernel.org \
    --cc=gstarikov@gmail.com \
    --cc=linux-bcache@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.