Re: commit 762380a "block: add notion of a chunk size for request merging" stops io on btrfs

2014-06-18 Thread Konstantinos Skarlatos
On 18/6/2014 5:11 πμ, Jens Axboe wrote: On 2014-06-17 14:35, Konstantinos Skarlatos wrote: Hi all, with 3.16-rc1 rsync stops writing to my btrfs filesystem and stays at a D+ state. git bisect showed that the problematic commit is: 762380ad9322951cea4ce9d24864265f9c66a916 is the first bad commi

Re: [PATCH v3] xfstests/btrfs: add qgroup rescan stress test

2014-06-18 Thread Wang Shilong
Hello Josef, The lastest Qgroup code still break this test sometimes. Ps: this test seems not merging into xfstests. On 05/09/2014 02:02 PM, Wang Shilong wrote: Test flow is to run fsstress after triggering quota rescan. the ruler is simple, we just remove all files and directories, sync files

Re: [systemd-devel] [PATCH 10/11] Avoid doubling the efforts for /var/log/journal

2014-06-18 Thread Dr. Werner Fink
On Mon, Jun 16, 2014 at 11:10:15AM -0400, Cristian Rodríguez wrote: > El 13/06/14 10:41, Werner Fink escribió: > > That is: set NOATIME, NOCOW, and NOCOMP for the journal directory > > > > --- > > src/journal/journald-server.c | 29 +++-- > > 1 file changed, 27 insertion

Re: [PATCH v6] Btrfs: fix memory leak of orphan block rsv

2014-06-18 Thread Alex Lyakas
Hi Filipe, I finally got to debug this deeper. As it turns out, this happens only if both "nospace_cache" and "clear_cache" are specified. You need to unmount and mount again to cause this. After mounting, due to "clear_cache", all the block-groups are marked as BTRFS_DC_CLEAR, and then cache_save_

Re: frustrations with handling of crash reports

2014-06-18 Thread Konstantinos Skarlatos
On 17/6/2014 9:27 μμ, Marc MERLIN wrote: On Tue, Jun 17, 2014 at 07:59:57AM -0700, Marc MERLIN wrote: It is also ok to answer "Any FS created or used before kernel 3.x can be corrupted due to bugs we fixed in 3.y, thank you for your report but it's not a good use of our time to investigate this"

Re: Transaction commit: none (default)

2014-06-18 Thread David Sterba
On Mon, Jun 16, 2014 at 03:09:53PM +0800, Wang Shilong wrote: > 1) Is that expected/normal? It looks kind of spamming/useless to me? > 2) If it's useful, what's the use I'm not getting? > >>>Addressed a issue that subvolumes reappear after deletetion if poweroff > >>>happen. > >>> > >>>http

Re: Transaction commit: none (default)

2014-06-18 Thread Marc MERLIN
On Wed, Jun 18, 2014 at 04:19:32PM +0200, David Sterba wrote: > On Mon, Jun 16, 2014 at 03:09:53PM +0800, Wang Shilong wrote: > > 1) Is that expected/normal? It looks kind of spamming/useless to me? > > 2) If it's useful, what's the use I'm not getting? > > >>>Addressed a issue that subvolu

Re: [PATCH] Fix undefined behavior in radix-tree.c.

2014-06-18 Thread David Sterba
On Wed, Jun 18, 2014 at 03:20:30PM +0900, Satoru Takeuchi wrote: > Hi Adam, > > (2014/06/14 6:18), Adam Buchbinder wrote: > > When running with UndefinedBehaviorSanitizer, the tests produce the > > following > > error: > > > >radix-tree.c:836:30: runtime error: shift exponent 184467440737095

Re: [PATCH v3] xfstests/btrfs: add qgroup rescan stress test

2014-06-18 Thread Josef Bacik
On 06/18/2014 01:36 AM, Wang Shilong wrote: Hello Josef, The lastest Qgroup code still break this test sometimes. Ps: this test seems not merging into xfstests. Yeah Chris said something about this yesterday, I'll try and get a vm up and running on my laptop soon and take a look at this.

Re: btrfs balance crash BUG ON fs/btrfs/relocation.c:1062 or RIP build_backref_tree+0x9fc/0xcc4

2014-06-18 Thread Josef Bacik
On 06/17/2014 11:55 AM, Marc MERLIN wrote: On Tue, Jun 17, 2014 at 11:29:57AM -0700, Josef Bacik wrote: I'm sure that filesystem is damaged in some way, but the kernel of course should not crash. I don't have this mail client setup right to send patches, can you just go into relocation.c in

Re: [PATCH V2] btrfs-progs: add mount options to btrfs-mount.5

2014-06-18 Thread David Sterba
On Thu, Jun 12, 2014 at 09:39:14AM -0500, Eric Sandeen wrote: > > So what if the mount options are generated from btrfs-mount.txt but > > installed under btrfs.5.gz name? If there are more section 5 manpages we > > can make it more generic but for now hardcoding btrfs-mount.* -> > > btrfs.5. sounds

Re: [PATCH v3] btrfs-progs: Improve the parse_size() error message.

2014-06-18 Thread David Sterba
On Fri, Jun 13, 2014 at 10:55:57AM +0800, Qu Wenruo wrote: > v3: >Don't reparse size twice >Better u64 overflow check Thanks. I've tested the limits, overflow checks and negative numbers, works fine. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a

Re: commit 762380a "block: add notion of a chunk size for request merging" stops io on btrfs

2014-06-18 Thread Jens Axboe
On 2014-06-18 00:21, Konstantinos Skarlatos wrote: On 18/6/2014 5:11 πμ, Jens Axboe wrote: On 2014-06-17 14:35, Konstantinos Skarlatos wrote: Hi all, with 3.16-rc1 rsync stops writing to my btrfs filesystem and stays at a D+ state. git bisect showed that the problematic commit is: 762380ad932

Re: [PATCH V2] btrfs-progs: add mount options to btrfs-mount.5

2014-06-18 Thread Eric Sandeen
On 6/18/14, 10:29 AM, David Sterba wrote: > On Thu, Jun 12, 2014 at 09:39:14AM -0500, Eric Sandeen wrote: >>> So what if the mount options are generated from btrfs-mount.txt but >>> installed under btrfs.5.gz name? If there are more section 5 manpages we >>> can make it more generic but for now har

Re: [PATCH] btrfs-progs: canonicalize pathnames for device commands

2014-06-18 Thread David Sterba
On Wed, Jun 04, 2014 at 04:43:11PM -0400, Jeff Mahoney wrote: > --- a/utils.c > +++ b/utils.c > @@ -987,6 +987,63 @@ static int blk_file_in_dev_list(struct b > } > > /* > + * Resolve a pathname to a device mapper node to /dev/mapper/ > + * Returns NULL on invalid input or malloc failure; Other

[PATCH] btrfs-progs: restore: check lzo compress length

2014-06-18 Thread Vincent Stehlé
When things go wrong for lzo-compressed btrfs, feeding lzo1x_decompress_safe() with corrupt data during restore can lead to crashes. Reduce the risk by adding a check on the input length. Signed-off-by: Vincent Stehlé --- Hi, This patch actually allowed me to finish a btrfs restore of a damaged

[3.13.y][SRU][PATCH 0/1] btrfs: fix defrag 32-bit integer overflow

2014-06-18 Thread Joseph Salisbury
BugLink: http://bugs.launchpad.net/bugs/1324953 Hello, Please consider including upstream commit c41570c9 in the next v3.13.y release. It was included upstream as of v3.14-rc2. It has been tested and confirmed to resolve http://bugs.launchpad.net/bugs/1324953 . commit c41570c9d29764f797fa35

[v3.10.y][v3.11.y][3.12.y][v3.13.y][v3.14.y][SRU][PATCH 0/1][V2] ALSA: usb-audio: Prevent printk ratelimiting from spamming kernel log while DEBUG not defined

2014-06-18 Thread Joseph Salisbury
Hello, Please consider including upstream commit b7a77235 in the next v3.13.y release. It was included upstream as of v3.15-rc5. It has been tested and confirmed to resolve http://bugs.launchpad.net/bugs/1319457 . commit b7a7723513dc89f83d6df13206df55d4dc26e825 Author: Sander Eikelenboom Dat

[v3.10.y][v3.11.y][v3.12.y][v3.13.y][v3.14.y][PATCH 1/1][V2] ALSA: usb-audio: Prevent printk ratelimiting from spamming kernel log while DEBUG not defined

2014-06-18 Thread Joseph Salisbury
From: Sander Eikelenboom BugLink: http://bugs.launchpad.net/bugs/1319457 This (widely used) construction: if(printk_ratelimit()) dev_dbg() Causes the ratelimiting to spam the kernel log with the "callbacks suppressed" message below, even while the dev_dbg it is supposed to rate limit w

btrfs on whole disk (no partitions)

2014-06-18 Thread Daniel Cegiełka
Hi, I created btrfs directly to disk using such a scheme (no partitions): dd if=/dev/zero of=/dev/sda bs=4096 mkfs.btrfs -L dev_sda /dev/sda mount /dev/sda /mnt cd /mnt btrfs subvolume create __active btrfs subvolume create __active/rootvol btrfs subvolume create __active/usr btrfs subvolume crea

Re: btrfs on whole disk (no partitions)

2014-06-18 Thread Chris Murphy
On Jun 18, 2014, at 1:29 PM, Daniel Cegiełka wrote: > Hi, > I created btrfs directly to disk using such a scheme (no partitions): > > dd if=/dev/zero of=/dev/sda bs=4096 > mkfs.btrfs -L dev_sda /dev/sda > mount /dev/sda /mnt > > cd /mnt > btrfs subvolume create __active > btrfs subvolume creat

Re: btrfs balance crash BUG ON fs/btrfs/relocation.c:1062 or RIP build_backref_tree+0x9fc/0xcc4

2014-06-18 Thread Marc MERLIN
First thanks for your answer and patch. While they didn't help, I'm happy to try another one or two if you'd like before I wipe the FS to recover. On Wed, Jun 18, 2014 at 08:26:46AM -0700, Josef Bacik wrote: > >2) is your guess that the BUG_ON I'm getting shouldn't be triggered > >and your propose

Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Marc Dionne
Hi, I've been seeing very reproducible soft lockups with 3.16-rc1 similar to what is reported here: http://marc.info/?l=linux-btrfs&m=140290088532203&w=2 , along with the occasional hard lockup, making it impossible to complete a parallel build on a btrfs filesystem for the package I work on. Thi

Re: [PATCH V2] btrfs-progs: add mount options to btrfs-mount.5

2014-06-18 Thread WorMzy Tykashi
info at http://vger.kernel.org/majordomo-info.html Hi David, I think you forgot to apply the patch that adds Documentation/btrfs-mount.5.txt before you tagged integration-20140618, man5 (and consequently Documentation) can't be made without it, causing a failed build. make: *** No rule to

Re: btrfs on whole disk (no partitions)

2014-06-18 Thread Imran Geriskovan
On 6/18/14, Daniel Cegiełka wrote: > I created btrfs directly to disk using such a scheme (no partitions): > cd /mnt > btrfs subvolume create __active > btrfs subvolume create __active/rootvol > Everything works fine. Is such a solution is recommended? In my > opinion, the creation of the partitio

Re: frustrations with handling of crash reports

2014-06-18 Thread Duncan
Konstantinos Skarlatos posted on Wed, 18 Jun 2014 16:23:04 +0300 as excerpted: > I guess that btrfs developers have put these BUG_ONs so that they get > reports from users when btrfs gets in these unexpected situations. But > if most of these reports are ignored or not resolved, then maybe there >

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Waiman Long
On 06/18/2014 04:57 PM, Marc Dionne wrote: Hi, I've been seeing very reproducible soft lockups with 3.16-rc1 similar to what is reported here: http://marc.info/?l=linux-btrfs&m=140290088532203&w=2 , along with the occasional hard lockup, making it impossible to complete a parallel build on a btr

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Josef Bacik
On 06/18/2014 03:17 PM, Waiman Long wrote: On 06/18/2014 04:57 PM, Marc Dionne wrote: Hi, I've been seeing very reproducible soft lockups with 3.16-rc1 similar to what is reported here: https://urldefense.proofpoint.com/v1/url?u=http://marc.info/?l%3Dlinux-btrfs%26m%3D140290088532203%26w%3D2&

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Waiman Long
On 06/18/2014 06:27 PM, Josef Bacik wrote: On 06/18/2014 03:17 PM, Waiman Long wrote: On 06/18/2014 04:57 PM, Marc Dionne wrote: Hi, I've been seeing very reproducible soft lockups with 3.16-rc1 similar to what is reported here: https://urldefense.proofpoint.com/v1/url?u=http://marc.info/?l%

Re: [PATCH V2] btrfs-progs: add mount options to btrfs-mount.5

2014-06-18 Thread David Sterba
On Wed, Jun 18, 2014 at 09:59:50PM +0100, WorMzy Tykashi wrote: > I think you forgot to apply the patch that adds > Documentation/btrfs-mount.5.txt before you tagged > integration-20140618, man5 (and consequently Documentation) can't be > made without it, causing a failed bui

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Josef Bacik
On 06/18/2014 03:47 PM, Waiman Long wrote: On 06/18/2014 06:27 PM, Josef Bacik wrote: On 06/18/2014 03:17 PM, Waiman Long wrote: On 06/18/2014 04:57 PM, Marc Dionne wrote: Hi, I've been seeing very reproducible soft lockups with 3.16-rc1 similar to what is reported here: https://urldefens

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Waiman Long
On 06/18/2014 07:10 PM, Josef Bacik wrote: On 06/18/2014 03:47 PM, Waiman Long wrote: On 06/18/2014 06:27 PM, Josef Bacik wrote: On 06/18/2014 03:17 PM, Waiman Long wrote: On 06/18/2014 04:57 PM, Marc Dionne wrote: Hi, I've been seeing very reproducible soft lockups with 3.16-rc1 similar

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Chris Mason
On 06/18/2014 07:19 PM, Waiman Long wrote: > On 06/18/2014 07:10 PM, Josef Bacik wrote: >> >> >> On 06/18/2014 03:47 PM, Waiman Long wrote: >>> On 06/18/2014 06:27 PM, Josef Bacik wrote: On 06/18/2014 03:17 PM, Waiman Long wrote: > On 06/18/2014 04:57 PM, Marc Dionne wrote: >

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Waiman Long
On 06/18/2014 07:27 PM, Chris Mason wrote: On 06/18/2014 07:19 PM, Waiman Long wrote: On 06/18/2014 07:10 PM, Josef Bacik wrote: On 06/18/2014 03:47 PM, Waiman Long wrote: On 06/18/2014 06:27 PM, Josef Bacik wrote: On 06/18/2014 03:17 PM, Waiman Long wrote: On 06/18/2014 04:57 PM, Marc Dio

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Chris Mason
On 06/18/2014 07:30 PM, Waiman Long wrote: > On 06/18/2014 07:27 PM, Chris Mason wrote: >> On 06/18/2014 07:19 PM, Waiman Long wrote: >>> On 06/18/2014 07:10 PM, Josef Bacik wrote: On 06/18/2014 03:47 PM, Waiman Long wrote: > On 06/18/2014 06:27 PM, Josef Bacik wrote: >> >> On

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Marc Dionne
On Wed, Jun 18, 2014 at 7:53 PM, Chris Mason wrote: > On 06/18/2014 07:30 PM, Waiman Long wrote: >> On 06/18/2014 07:27 PM, Chris Mason wrote: >>> On 06/18/2014 07:19 PM, Waiman Long wrote: On 06/18/2014 07:10 PM, Josef Bacik wrote: > > On 06/18/2014 03:47 PM, Waiman Long wrote: >

Re: btrfs on whole disk (no partitions)

2014-06-18 Thread Russell Coker
On Wed, 18 Jun 2014 21:29:39 Daniel Cegiełka wrote: > Everything works fine. Is such a solution is recommended? In my > opinion, the creation of the partitions seems to be completely > unnecessary if you can use btrfs. For boot disks I use the traditional partitioning system. So far I don't run

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Waiman Long
On 06/18/2014 08:03 PM, Marc Dionne wrote: On Wed, Jun 18, 2014 at 7:53 PM, Chris Mason wrote: On 06/18/2014 07:30 PM, Waiman Long wrote: On 06/18/2014 07:27 PM, Chris Mason wrote: On 06/18/2014 07:19 PM, Waiman Long wrote: On 06/18/2014 07:10 PM, Josef Bacik wrote: On 06/18/2014 03:47 PM,

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Marc Dionne
On Wed, Jun 18, 2014 at 8:08 PM, Waiman Long wrote: > On 06/18/2014 08:03 PM, Marc Dionne wrote: >> >> On Wed, Jun 18, 2014 at 7:53 PM, Chris Mason wrote: >>> >>> On 06/18/2014 07:30 PM, Waiman Long wrote: On 06/18/2014 07:27 PM, Chris Mason wrote: > > On 06/18/2014 07:19 PM, Wa

Re: [PATCH v3] xfstests/btrfs: add qgroup rescan stress test

2014-06-18 Thread Dave Chinner
On Wed, Jun 18, 2014 at 04:36:22PM +0800, Wang Shilong wrote: > Hello Josef, > > The lastest Qgroup code still break this test sometimes. > > Ps: this test seems not merging into xfstests. Then repost it to fste...@vger.kernel.org. Sometimes patches get missed... Cheers, Dave. -- Dave Chinne

Re: btrfs on whole disk (no partitions)

2014-06-18 Thread George Mitchell
A lot of good comments on this topic already. I would just add that on large (TB) drives, not partitioning can result in some pretty slow mount and umount times (even applies to mounting subvolumes). That is one of the frustrating side effects I have noticed with a non-partitioned 4TB drive o

Re: [PATCH] Fix undefined behavior in radix-tree.c.

2014-06-18 Thread Satoru Takeuchi
Hi David, Adam, (2014/06/18 23:43), David Sterba wrote: On Wed, Jun 18, 2014 at 03:20:30PM +0900, Satoru Takeuchi wrote: Hi Adam, (2014/06/14 6:18), Adam Buchbinder wrote: When running with UndefinedBehaviorSanitizer, the tests produce the following error: radix-tree.c:836:30: runtime er

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-18 Thread Dave Chinner
On Mon, Jun 16, 2014 at 12:13:07AM +0200, Lennart Poettering wrote: > On Sat, 14.06.14 09:52, Goffredo Baroncelli (kreij...@libero.it) wrote: > > > > Which effectively means that by the time the 8 MiB is filled, each 4 KiB > > > block has been rewritten to a new location and is now an extent unto

[PATCH 2/6] Btrfs-progs: btrfs-restore,check if specified root is fs/file tree firstly

2014-06-18 Thread Wang Shilong
Steps to reproduce: # mkfs.btrfs -f /dev/sda9 # mount /dev/sda9 /mnt # dd if=/dev/zero of=/mnt/data bs=1M count=1 # btrfs restore -r /dev/sda9 -r 2 -o /tmp If users don't input a valid fs/file root objectid, btrfs restore still continue and don't restore anything, this is unfriendly, we could

[PATCH 3/6] Btrfs-progs: btrfs-restore, fix wrong return value if it fails to read specified fs root

2014-06-18 Thread Wang Shilong
Steps to reproduce: # mkfs.btrfs -f /dev/sda9 # btrfs restore -f 1 -o /tmp /dev/sda9 # echo $? Fix to return 1 in this failure path. Signed-off-by: Wang Shilong --- cmds-restore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmds-restore.c b/cmds-restore.c index 934755a..48c46ff 10064

[PATCH 6/6] Btrfs-progs: btrfs-restore, document updates

2014-06-18 Thread Wang Shilong
Add some missing options, also improve some confusing expressions. Signed-off-by: Wang Shilong --- Documentation/btrfs-restore.txt | 26 ++ cmds-restore.c | 7 --- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/Documentation/btrfs-r

[PATCH 4/6] Btrfs-progs: btrfs-restore,output resason why it fails to read root

2014-06-18 Thread Wang Shilong
Previously if restore could not read users specified fs root, it would output following message: Error reading root With this patch, it will output message like: Fail to read root 1000: No such file or directory Signed-off-byr Wang Shilong --- cmds-restore.c | 3 ++- 1 file changed, 2 inser

[PATCH 1/6] Btrfs-progs: fsck: switch to is_fstree()

2014-06-18 Thread Wang Shilong
Signed-off-by: Wang Shilong --- cmds-check.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index c56da2a..26baab0 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -2049,13 +2049,10 @@ skip_walking: static int fs_root_objectid(u64 object

[PATCH 5/6] Btrfs-progs: btrfs-restore, don't allow users to specify -r and -f at the same time

2014-06-18 Thread Wang Shilong
These two options are used for same purpose, but they are exclusive with each other. Make it clear to common users. Signed-off-by: Wang Shilong --- cmds-restore.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cmds-restore.c b/cmds-restore.c index 8267ab6..3a29ed6 100644 --- a/cmds-res

[PATCH 1/4] btrfs-progs: cleanup duplicate assignment of variable leaf for btrfs-image

2014-06-18 Thread Gui Hecheng
The value of variable leaf in while loop don't have to be set for every round. Just move it outside. Signed-off-by: Gui Hecheng --- btrfs-image.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/btrfs-image.c b/btrfs-image.c index cf1fe2d..db5d193 100644 --- a/btrfs-imag

[PATCH 4/4] btrfs-progs: update manpage for btrfs-image with -m option added

2014-06-18 Thread Gui Hecheng
The btrfs-image support multiple devices with -m specified. Signed-off-by: Gui Hecheng --- Documentation/btrfs-image.txt | 3 +++ btrfs-image.c | 1 + 2 files changed, 4 insertions(+) diff --git a/Documentation/btrfs-image.txt b/Documentation/btrfs-image.txt index 7ee820c..15519

[PATCH 2/4] btrfs-progs: deal with invalid option combinations for btrfs-image

2014-06-18 Thread Gui Hecheng
For btrfs-image, dumpmay not come with option '-o' -r may not come with option '-c', '-s', '-w', dev_cnt != 1 -m may not come with dev_cnt < 2 All of the above should be regarded as invalid combinations, and the usage will show up. Signed-off-by: Gui Hecheng

[PATCH 3/4] btrfs-progs: delete invalid output file when btrfs-image failed

2014-06-18 Thread Gui Hecheng
When btrfs-image failed to create an image, the invalid output file had better be deleted to prevent being used mistakenly in the future. Signed-off-by: Gui Hecheng --- btrfs-image.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/btrfs-image.c b/btrfs-image.c index

Re: [v3.10.y][v3.11.y][v3.12.y][v3.13.y][v3.14.y][PATCH 1/1][V2] ALSA: usb-audio: Prevent printk ratelimiting from spamming kernel log while DEBUG not defined

2014-06-18 Thread Ben Hutchings
On Wed, 2014-06-18 at 14:32 -0400, Joseph Salisbury wrote: > From: Sander Eikelenboom > > BugLink: http://bugs.launchpad.net/bugs/1319457 > > This (widely used) construction: > > if(printk_ratelimit()) > dev_dbg() > > Causes the ratelimiting to spam the kernel log with the "callbacks sup

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Marc Dionne
On Wed, Jun 18, 2014 at 8:41 PM, Marc Dionne wrote: > On Wed, Jun 18, 2014 at 8:08 PM, Waiman Long wrote: >> On 06/18/2014 08:03 PM, Marc Dionne wrote: >>> >>> On Wed, Jun 18, 2014 at 7:53 PM, Chris Mason wrote: On 06/18/2014 07:30 PM, Waiman Long wrote: > > On 06/18/2014 07:27

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Chris Mason
On 06/18/2014 10:03 PM, Marc Dionne wrote: > On Wed, Jun 18, 2014 at 8:41 PM, Marc Dionne wrote: >> On Wed, Jun 18, 2014 at 8:08 PM, Waiman Long wrote: >>> On 06/18/2014 08:03 PM, Marc Dionne wrote: > > And for an additional data point, just removing those > CONFIG_DEBUG_LOCK_ALLOC ifdefs looks

[PATCH 0/7] random bugfixes

2014-06-18 Thread Miao Xie
This is a random bugfix patchset. patch 0001, 0005, 0006, 0007 is new patch, patch 0002 is the third version of broken free space cache fix patch, patch 0003, 0004 is old ones which are not merged. We can pull this patchset from the URL https://github.com/miaoxie/linux-btrfs.git for-Chris Than

[PATCH 5/7] Btrfs: use bio_endio_nodec instead of open code

2014-06-18 Thread Miao Xie
Signed-off-by: Miao Xie --- fs/btrfs/volumes.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 19c298a..31f9036 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -5399,12 +5399,6 @@ static void btrfs_end_bio(struc

[PATCH 1/7] Btrfs: make free space cache write out functions more readable

2014-06-18 Thread Miao Xie
This patch makes the free space cache write out functions more readable, and beisdes that, it also reduces the stack space that the function -- __btrfs_write_out_cache uses from 194bytes to 144bytes. Signed-off-by: Miao Xie --- fs/btrfs/free-space-cache.c | 159 ++

[PATCH RESEND 3/7] btrfs: Skip scrubbing removed chunks to avoid -ENOENT.

2014-06-18 Thread Miao Xie
From: Qu Wenruo When run scrub with balance, sometimes -ENOENT will be returned, since in scrub_enumerate_chunks() will search dev_extent in *COMMIT_ROOT*, but btrfs_lookup_block_group() will search block group in *MEMORY*, so if a chunk is removed but not committed, -ENOENT will be returned. Ho

[PATCH 6/7] Btrfs: fix deadlock when mounting a degraded fs

2014-06-18 Thread Miao Xie
The deadlock happened when we mount degraded filesystem, the reproduced steps are following: # mkfs.btrfs -f -m raid1 -d raid1 # echo 1 > /sys/block/`basename `/device/delete # mount -o degraded The reason was that the counter -- bi_remaining was wrong. If the missing or unwriteable device

[PATCH 7/7] Btrfs: fix wrong error handle when the device is missing or is not writeable

2014-06-18 Thread Miao Xie
The original bio might be submitted, so we shoud increase bi_remaining to account for it when we deal with the error that the device is missing or is not writeable, or we would skip the endio handle. Signed-off-by: Miao Xie --- fs/btrfs/volumes.c | 22 +++--- 1 file changed, 15 i

[PATCH V3 2/7] Btrfs: fix broken free space cache after the system crashed

2014-06-18 Thread Miao Xie
When we mounted the filesystem after the crash, we got the following message: BTRFS error (device xxx): block group has wrong amount of free space BTRFS error (device xxx): failed to load free space cache for block group xxx It is because we didn't update the metadata of the allocated spa

[PATCH RESEND 4/7] Btrfs: fix NULL pointer crash when running balance and scrub concurrently

2014-06-18 Thread Miao Xie
From: Wang Shilong While running balance, scrub, fsstress concurrently we hit the following kernel crash: [56561.448845] BTRFS info (device sde): relocating block group 11005853696 flags 132 [56561.524077] BUG: unable to handle kernel NULL pointer dereference at 0078 [56561.524237]

[PATCH v3 resend] xfstests/btrfs: add qgroup rescan stress test

2014-06-18 Thread Wang Shilong
Test flow is to run fsstress after triggering quota rescan. the ruler is simple, we just remove all files and directories, sync filesystem and see if qgroup's ref and excl are nodesize. Signed-off-by: Wang Shilong Reviewed-by: Josef Bacik --- v2->v3: addressed comments from josef: - remo

Re: Lockups with btrfs on 3.16-rc1 - bisected

2014-06-18 Thread Waiman Long
On 06/18/2014 10:11 PM, Chris Mason wrote: On 06/18/2014 10:03 PM, Marc Dionne wrote: On Wed, Jun 18, 2014 at 8:41 PM, Marc Dionne wrote: On Wed, Jun 18, 2014 at 8:08 PM, Waiman Long wrote: On 06/18/2014 08:03 PM, Marc Dionne wrote: And for an additional data point, just removing those CONF

[PATCH] btrfs-progs: Add minimum device size check.

2014-06-18 Thread Qu Wenruo
Btrfs has global block reservation, so even mkfs.btrfs can execute without problem, there is still a possibility that the filesystem can't be mounted. For example when mkfs.btrfs on a 8M file on x86_64 platform, kernel will refuse to mount due to ENOSPC, since system block group takes 4M and mixed

[PATCH] btrfs-progs: Add minimum device size check.

2014-06-18 Thread Qu Wenruo
Btrfs has global block reservation, so even mkfs.btrfs can execute without problem, there is still a possibility that the filesystem can't be mounted. For example when mkfs.btrfs on a 8M file on x86_64 platform, kernel will refuse to mount due to ENOSPC, since system block group takes 4M and mixed

Re: btrfs on whole disk (no partitions)

2014-06-18 Thread Russell Coker
On Wed, 18 Jun 2014 18:01:44 George Mitchell wrote: > A lot of good comments on this topic already. I would just add that on > large (TB) drives, not partitioning can result in some pretty slow mount > and umount times (even applies to mounting subvolumes). If you mount a subvol then the kernel