Re: [PATCH v5] btrfs: qgroup: Don't copy extent buffer to do qgroup rescan

2015-10-26 Thread Filipe Manana
On Mon, Oct 26, 2015 at 1:19 AM, Qu Wenruo wrote: > Ancient qgroup code call memcpy() on a extent buffer and use it for leaf > iteration. > > As extent buffer contains lock, pointers to pages, it's never sane to do > such copy. > > The following bug may be caused by this

[PATCH v5] btrfs: qgroup: Don't copy extent buffer to do qgroup rescan

2015-10-25 Thread Qu Wenruo
Ancient qgroup code call memcpy() on a extent buffer and use it for leaf iteration. As extent buffer contains lock, pointers to pages, it's never sane to do such copy. The following bug may be caused by this insane operation: [92098.841309] general protection fault: [#1] SMP [92098.841338]