[PATCH] Btrfs: fix deadlock in wait_for_more_refs

2012-08-06 Thread Arne Jansen
Commit a168650c introduced a waiting mechanism to prevent busy waiting in btrfs_run_delayed_refs. This can deadlock with btrfs_run_ordered_operations, where a tree_mod_seq is held while waiting for the io to complete, while the end_io calls btrfs_run_delayed_refs. This whole mechanism is

Re: [PATCH] Btrfs: fix deadlock in wait_for_more_refs

2012-08-06 Thread Mitch Harder
On Mon, Aug 6, 2012 at 3:18 PM, Arne Jansen sensi...@gmx.net wrote: Commit a168650c introduced a waiting mechanism to prevent busy waiting in btrfs_run_delayed_refs. This can deadlock with btrfs_run_ordered_operations, where a tree_mod_seq is held while waiting for the io to complete, while

Re: [PATCH] Btrfs: fix deadlock in wait_for_more_refs

2012-08-06 Thread Arne Jansen
On 08/07/2012 07:03 AM, Mitch Harder wrote: On Mon, Aug 6, 2012 at 3:18 PM, Arne Jansen sensi...@gmx.net wrote: Commit a168650c introduced a waiting mechanism to prevent busy waiting in btrfs_run_delayed_refs. This can deadlock with btrfs_run_ordered_operations, where a tree_mod_seq is held