Re: [PATCH 1/2] Btrfs: fix a deadlock in aborting transaction due to ENOSPC

2012-11-19 Thread Miao Xie
On mon, 19 Nov 2012 15:58:55 +0800, Liu Bo wrote: On Fri, Nov 16, 2012 at 03:19:49PM +0100, David Sterba wrote: On Mon, Nov 05, 2012 at 08:42:08PM +0800, Liu Bo wrote: When committing a transaction, we may bail out of running delayed refs due to ENOSPC, and then abort the current

Re: [PATCH 1/2] Btrfs: fix a deadlock in aborting transaction due to ENOSPC

2012-11-18 Thread Liu Bo
On Fri, Nov 16, 2012 at 03:19:49PM +0100, David Sterba wrote: On Mon, Nov 05, 2012 at 08:42:08PM +0800, Liu Bo wrote: When committing a transaction, we may bail out of running delayed refs due to ENOSPC, and then abort the current transaction to flip into readonly. But we'll hit a

Re: [PATCH 1/2] Btrfs: fix a deadlock in aborting transaction due to ENOSPC

2012-11-16 Thread David Sterba
On Mon, Nov 05, 2012 at 08:42:08PM +0800, Liu Bo wrote: When committing a transaction, we may bail out of running delayed refs due to ENOSPC, and then abort the current transaction to flip into readonly. But we'll hit a deadlock on ref head's lock since we forget to release its lock and

[PATCH 1/2] Btrfs: fix a deadlock in aborting transaction due to ENOSPC

2012-11-05 Thread Liu Bo
When committing a transaction, we may bail out of running delayed refs due to ENOSPC, and then abort the current transaction to flip into readonly. But we'll hit a deadlock on ref head's lock since we forget to release its lock and other cleanup stuff. Signed-off-by: Liu Bo bo.li@oracle.com