Re: [PATCH 1/2] overlayfs: fix a deadlock in ovl_dir_read_merged

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Felix,

On Fri, 18 Mar 2011, Felix Fietkau wrote:
> Some filesystems (e.g. jffs2) lock the same resources for both readdir
> and lookup, leading to a deadlock in ovl_dir_read_merged, which uses
> a lookup in the filldir callback for the upper filesystem to identify
> whiteout entries.
> Fix this by moving all links to the head of the list and marking whiteouts
> after readdir.
> 
> Signed-off-by: Felix Fietkau <nbd@xxxxxxxxxxx>

Thanks for the patches.

I committed and pushed them out to the overlayfs.v6 branch at

  git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs.v6

Also added one optimization and one fix.  I'll post those two patches
here shortly.  Please test.

Thanks,
Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux