[PATCH v7] Btrfs: fix deadlock in uuid scan kthread

2013-08-28 Thread Filipe David Borba Manana
If there's an ongoing transaction when the uuid scan kthread attempts to create one, the kthread will block, waiting for that transaction to finish while it's keeping locks on the tree root, and in turn the existing transaction is waiting for those locks to be free. The stack trace reported by

Re: [PATCH V4] xfstests: don't remove the two first devices from SCRATCH_DEV_POOL

2013-08-28 Thread Rich Johnston
Thanks for the patch Stefan, it has been committed. --Rich commit f1dce456c594a784afb723d1bc7c09056ab3d9d9 Author: Stefan Behrens sbehr...@giantdisaster.de Date: Fri Aug 23 13:07:10 2013 + xfstests: don't remove the two first devices from SCRATCH_DEV_POOL -- To unsubscribe from this

Re: [PATCH] xfstest: fix btrfs/006 for 10+ devices in SCRATCH_DEV_POOL

2013-08-28 Thread Rich Johnston
Thanks for the patch Stefan, it has been committed. --Rich commit 0d3bbd18942bfac464d18f88c0a3c100c67a24f2 Author: Stefan Behrens sbehr...@giantdisaster.de Date: Fri Aug 23 13:07:13 2013 + xfstests: fix btrfs/006 for 10+ devices in SCRATCH_DEV_POOL -- To unsubscribe from this list:

btrfs device delete missing - kernel BUG at fs/btrfs/relocation.c:1055!

2013-08-28 Thread Tomasz Chmielewski
Just tried to remove a broken disk, which ended in segmentation fault and kernel BUG. Any advice what to do next? This is on 3.11.0-rc7. # btrfs device delete missing /home (after a few minutes) Segmentation fault # btrfs fi show Label: 'test-btrfs' uuid: 60f1759c-45f6-4484-9f60-66a4e9bbf2b6

Re: [PATCH][RESEND] xfstests: add a test for btrfs device replace operation

2013-08-28 Thread Rich Johnston
Thanks for the patch Stefan, it has been committed. --Rich commit 53b73199db79dcd58622aaac2e9b0f31073bfc44 Author: Stefan Behrens sbehr...@giantdisaster.de Date: Fri Aug 23 13:07:11 2013 + xfstests: add a test for btrfs device replace operation -- To unsubscribe from this list: send

Re: [PATCH] Btrfs: add support for asserts

2013-08-28 Thread David Sterba
On Mon, Aug 26, 2013 at 04:56:06PM -0400, Josef Bacik wrote: +#ifdef BTRFS_ASSERT + +static inline void assfail(char *expr, char *file, int lin) typo: lin instead of line -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to

Re: How btrfs resize should work ?

2013-08-28 Thread David Sterba
On Fri, Aug 16, 2013 at 02:11:23PM -0600, Chris Murphy wrote: On Aug 16, 2013, at 12:02 PM, Chris Murphy li...@colorremedies.com wrote: When a Btrfs multiple device volume is shrunk resized, it directly affects the partition sizeā€¦ Oops, this obviously happens with single or multiple

Re: bug

2013-08-28 Thread Liu Bo
On Thu, Aug 29, 2013 at 10:34:00AM +0800, lilofile wrote: I made a btrfs on five disks using RAID5 (-d raid5 for mount option). When a power failure occurs, I can not remount btrfs after my system reboots. Dmesg for remount is presented as following: [ 192.713953] bio: create slab bio-1

btrfs raid5 question

2013-08-28 Thread lilofile
btrfs raid5, The replace operation depends on scrub and makes use of the scrub code. And scrub does not yet support RAID5/6. Therefore 'btrfs replace start' fails with EINVAL on RAID5/6 filesystems. when does the replace function is added? who can tell me the plan? -- To unsubscribe from

[PATCH] Btrfs: allocate the free space by the existed max extent size when ENOSPC

2013-08-28 Thread Miao Xie
By the current code, if the requested size is very large, and all the extents in the free space cache are small, we will waste lots of the cpu time to cut the requested size in half and search the cache again and again until it gets down to the size the allocator can return. In fact, we can know