From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from magic.merlins.org ([209.81.13.136]:56890 "EHLO mail1.merlins.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751577AbcKHBmB (ORCPT ); Mon, 7 Nov 2016 20:42:01 -0500 Date: Mon, 7 Nov 2016 17:06:00 -0800 From: Marc MERLIN To: Qu Wenruo Cc: David Sterba , Hugo Mills , linux-btrfs@vger.kernel.org Subject: Re: btrfs support for filesystems >8TB on 32bit architectures Message-ID: <20161108010600.GE13371@merlins.org> References: <20161107012009.xng7hyhoqwqres3u@merlins.org> <8e2407ee-c137-44c3-b9c8-4dec931d6c3a@cn.fujitsu.com> <0b840fbb-1a3d-d395-47ad-015e84eac05a@cn.fujitsu.com> <20161107053647.uj7df3ppve4pbfms@merlins.org> <10ed4e8a-c9a6-961a-fb51-16186da079e4@cn.fujitsu.com> <20161107145502.7lahpm6smqsv6s2q@merlins.org> <20161108003950.GD13371@merlins.org> <63a1964d-f8df-413d-c088-20163f824e3d@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <63a1964d-f8df-413d-c088-20163f824e3d@cn.fujitsu.com> Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Tue, Nov 08, 2016 at 08:43:34AM +0800, Qu Wenruo wrote: > That's strange, balance is done completely in kernel space. > > Unless we're calling vfs_* function we won't go through the extra check. > > What's the error reported? See below. Note however that is may be because btrfs received messed up the filesystem first. BTRFS info (device dm-0): use zlib compression BTRFS info (device dm-0): disk space caching is enabled BTRFS info (device dm-0): has skinny extents BTRFS info (device dm-0): bdev /dev/mapper/crypt_bcache0 errs: wr 0, rd 0, flush 0, corrupt 512, gen 0 BTRFS info (device dm-0): detected SSD devices, enabling SSD mode BTRFS info (device dm-0): continuing balance BTRFS info (device dm-0): The free space cache file (1593999097856) is invalid. skip it BTRFS info (device dm-0): The free space cache file (1671308509184) is invalid. skip it BTRFS info (device dm-0): relocating block group 13835461197824 flags 34 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 22825 at fs/btrfs/disk-io.c:520 btree_csum_one_bio.isra.39+0xf7/0x100 Modules linked in: bcache configs rc_hauppauge ir_kbd_i2c cpufreq_userspace cpufreq_powersave cpufreq_conservative autofs4 snd_hda_codec_hdmi joydev snd_hda_codec_realtek snd_hda_codec_generic tuner_simple tuner_types tda9887 snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep tda8290 coretemp snd_pcm_oss snd_mixer_oss tuner snd_pcm msp3400 snd_seq_midi snd_seq_midi_event firewire_sbp2 saa7127 snd_rawmidi hwmon_vid dm_crypt dm_mod saa7115 snd_seq bttv hid_generic snd_seq_device snd_timer ehci_pci ivtv tea575x videobuf_dma_sg rc_core videobuf_core input_leds tveeprom cx2341x v4l2_common ehci_hcd videodev media acpi_cpufreq tpm_tis tpm_tis_core gpio_ich snd soundcore tpm psmouse lpc_ich evdev asus_atk0110 serio_raw lp parport raid456 async_raid6_recov async_pq async_xor async_memcpy async_tx multipath usbhid hid sr_mod cdrom sg firewire_ohci firewire_core floppy crc_itu_t i915 atl1 fjes mii uhci_hcd usbcore usb_common CPU: 0 PID: 22825 Comm: kworker/u9:2 Tainted: G W 4.8.5-ia32-20161028 #2 Hardware name: System manufacturer P5E-VM HDMI/P5E-VM HDMI, BIOS 0604 07/16/2008 Workqueue: btrfs-worker-high btrfs_worker_helper 00200286 00200286 d3d81e48 df414827 00000000 dfa12da5 d3d81e78 df05677a df9ed884 00000000 00005929 dfa12da5 00000208 df2cf067 00000208 f7463fa0 f401a080 00000000 d3d81e8c df05684a 00000009 00000000 00000000 d3d81eb4 Call Trace: [] dump_stack+0x58/0x81 [] __warn+0xea/0x110 [] ? btree_csum_one_bio.isra.39+0xf7/0x100 [] warn_slowpath_null+0x2a/0x30 [] btree_csum_one_bio.isra.39+0xf7/0x100 [] __btree_submit_bio_start+0x15/0x20 [] run_one_async_start+0x30/0x40 [] btrfs_scrubparity_helper+0xcd/0x2d0 [] ? run_one_async_free+0x20/0x20 [] btrfs_worker_helper+0xd/0x10 [] process_one_work+0x10b/0x400 [] worker_thread+0x37/0x4b0 [] ? process_one_work+0x400/0x400 [] kthread+0x9b/0xb0 [] ret_from_kernel_thread+0xe/0x24 [] ? kthread_stop+0x100/0x100 ---[ end trace f461faff989bf258 ]--- BTRFS: error (device dm-0) in btrfs_commit_transaction:2232: errno=-5 IO failure (Error while writing out transaction) BTRFS info (device dm-0): forced readonly BTRFS warning (device dm-0): Skipping commit of aborted transaction. ------------[ cut here ]------------ WARNING: CPU: 0 PID: 22318 at fs/btrfs/transaction.c:1854 btrfs_commit_transaction+0x2f5/0xcc0 BTRFS: Transaction aborted (error -5) Modules linked in: bcache configs rc_hauppauge ir_kbd_i2c cpufreq_userspace cpufreq_powersave cpufreq_conservative autofs4 snd_hda_codec_hdmi joydev snd_hda_codec_realtek snd_hda_codec_generic tuner_simple tuner_types tda9887 snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep tda8290 coretemp snd_pcm_oss snd_mixer_oss tuner snd_pcm msp3400 snd_seq_midi snd_seq_midi_event firewire_sbp2 saa7127 snd_rawmidi hwmon_vid dm_crypt dm_mod saa7115 snd_seq bttv hid_generic snd_seq_device snd_timer ehci_pci ivtv tea575x videobuf_dma_sg rc_core videobuf_core input_leds tveeprom cx2341x v4l2_common ehci_hcd videodev media acpi_cpufreq tpm_tis tpm_tis_core gpio_ich snd soundcore tpm psmouse lpc_ich evdev asus_atk0110 serio_raw lp parport raid456 async_raid6_recov async_pq async_xor async_memcpy async_tx multipath usbhid hid sr_mod cdrom sg firewire_ohci firewire_core floppy crc_itu_t i915 atl1 fjes mii uhci_hcd usbcore usb_common CPU: 0 PID: 22318 Comm: btrfs-balance Tainted: G W 4.8.5-ia32-20161028 #2 Hardware name: System manufacturer P5E-VM HDMI/P5E-VM HDMI, BIOS 0604 07/16/2008 00000286 00000286 d74a3ca4 df414827 d74a3ce8 dfa132ab d74a3cd4 df05677a dfa075cc d74a3d04 0000572e dfa132ab 0000073e df2d7de5 0000073e f698dc00 e9173e70 fffffffb d74a3cf0 df0567db 00000009 00000000 d74a3ce8 dfa075cc Call Trace: [] dump_stack+0x58/0x81 [] __warn+0xea/0x110 [] ? btrfs_commit_transaction+0x2f5/0xcc0 [] warn_slowpath_fmt+0x3b/0x40 [] btrfs_commit_transaction+0x2f5/0xcc0 [] ? prepare_to_wait_event+0xd0/0xd0 [] prepare_to_relocate+0x12f/0x180 [] relocate_block_group+0x31/0x790 [] ? vprintk_default+0x37/0x40 [] ? mutex_lock+0x10/0x30 [] ? btrfs_wait_ordered_roots+0x1d5/0x1f0 [] ? printk+0x17/0x19 [] ? btrfs_printk+0x102/0x110 [] btrfs_relocate_block_group+0x1e8/0x2e0 [] btrfs_relocate_chunk.isra.29+0x3f/0xf0 [] ? free_extent_buffer+0x4f/0xa0 [] btrfs_balance+0xb05/0x1820 [] ? console_unlock+0x40a/0x630 [] balance_kthread+0x51/0x80 [] ? btrfs_balance+0x1820/0x1820 [] kthread+0x9b/0xb0 [] ret_from_kernel_thread+0xe/0x24 [] ? kthread_stop+0x100/0x100 ---[ end trace f461faff989bf259 ]--- BTRFS: error (device dm-0) in cleanup_transaction:1854: errno=-5 IO failure BTRFS info (device dm-0): delayed_refs has NO entry -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/