Re: [PATCH] Btrfs: make sure there are not any read requests before stopping workers

2014-04-14 Thread David Sterba
On Wed, Apr 09, 2014 at 07:23:22PM +0800, Wang Shilong wrote: In close_ctree(), after we have stopped all workers,there maybe still some read requests(for example readahead) to submit and this *maybe* trigger an oops that user reported before: kernel BUG at fs/btrfs/async-thread.c:619! By

[PATCH] Btrfs: make sure there are not any read requests before stopping workers

2014-04-09 Thread Wang Shilong
In close_ctree(), after we have stopped all workers,there maybe still some read requests(for example readahead) to submit and this *maybe* trigger an oops that user reported before: kernel BUG at fs/btrfs/async-thread.c:619! By hacking codes, i can reproduce this problem with one cpu available.