]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
btrfs: initialize the seq counter in struct btrfs_device
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 15 Jan 2016 13:37:15 +0000 (14:37 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:22:36 +0000 (10:22 +0100)
commit488da7c72845a68e55180527c848949c3cdb8289
tree0f4a660a94e72df0695cd795d5f659cc795fa7eb
parentcaab98a27db6d636b07745a380553dc841f68b31
btrfs: initialize the seq counter in struct btrfs_device

BugLink: http://bugs.launchpad.net/bugs/1553179
commit 546bed631203344611f42b2af1d224d2eedb4e6b upstream.

I managed to trigger this:
| INFO: trying to register non-static key.
| the code is fine but needs lockdep annotation.
| turning off the locking correctness validator.
| CPU: 1 PID: 781 Comm: systemd-gpt-aut Not tainted 4.4.0-rt2+ #14
| Hardware name: ARM-Versatile Express
| [<80307cec>] (dump_stack)
| [<80070e98>] (__lock_acquire)
| [<8007184c>] (lock_acquire)
| [<80287800>] (btrfs_ioctl)
| [<8012a8d4>] (do_vfs_ioctl)
| [<8012ac14>] (SyS_ioctl)

so I think that btrfs_device_data_ordered_init() is not invoked behind
a macro somewhere.

Fixes: 7cc8e58d53cd ("Btrfs: fix unprotected device's variants on 32bits machine")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/btrfs/volumes.c