Re: [PATCH v1 05/10] Btrfs: add nested locking mode for paths

2011-12-23 Thread Jan Schmidt
Am 22.12.2011 20:16, schrieb Chris Mason: On Thu, Dec 22, 2011 at 05:03:19PM +0100, Jan Schmidt wrote: From: Arne Jansen This patch adds the possibilty to read-lock an extent even if it is already write-locked from the same thread. btrfs_find_all_roots() needs this capability. I'd rather not

Re: [PATCH v1 05/10] Btrfs: add nested locking mode for paths

2011-12-22 Thread Chris Mason
On Thu, Dec 22, 2011 at 05:03:19PM +0100, Jan Schmidt wrote: > From: Arne Jansen > > This patch adds the possibilty to read-lock an extent even if it is already > write-locked from the same thread. btrfs_find_all_roots() needs this > capability. I'd rather not add a nested flag to the locking co

[PATCH v1 05/10] Btrfs: add nested locking mode for paths

2011-12-22 Thread Jan Schmidt
From: Arne Jansen This patch adds the possibilty to read-lock an extent even if it is already write-locked from the same thread. btrfs_find_all_roots() needs this capability. Signed-off-by: Arne Jansen Signed-off-by: Jan Schmidt --- fs/btrfs/ctree.c | 22 fs/btrfs/c