android_kernel_xiaomi_sdm845/fs/nilfs2
Ryusuke Konishi fe5f171bb2 nilfs2: fix potential hang in nilfs_error on errors=remount-ro
nilfs_error() calls nilfs_detach_segment_constructor() if
errors=remount-ro option is specified, and this may lead to a hang due
to recursive locking of, for instance, nilfs->ns_segctor_sem and
others.

In this case, detaching segment constructor is not necessary because
read-only flag is set to the filesystem and further writes are
blocked.

This fixes the potential hang issue by removing the
nilfs_detach_segment_constructor() call from nilfs_error.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
2010-02-13 12:26:03 +09:00
..
alloc.c
alloc.h
bmap_union.h
bmap.c nilfs2: trivial coding style fix 2009-12-25 13:01:50 +09:00
bmap.h
btnode.c
btnode.h
btree.c
btree.h
cpfile.c nilfs2: trivial coding style fix 2009-12-25 13:01:50 +09:00
cpfile.h
dat.c
dat.h
dir.c
direct.c nilfs2: trivial coding style fix 2009-12-25 13:01:50 +09:00
direct.h
file.c
gcdat.c
gcinode.c
ifile.c
ifile.h
inode.c
ioctl.c nilfs2: use mnt_want_write in ioctls where write access is needed 2010-02-13 12:26:02 +09:00
Kconfig
Makefile
mdt.c
mdt.h
namei.c
nilfs.h
page.c
page.h
recovery.c
sb.h
segbuf.c
segbuf.h
segment.c nilfs2: fix potential hang in nilfs_error on errors=remount-ro 2010-02-13 12:26:03 +09:00
segment.h
sufile.c
sufile.h
super.c nilfs2: fix potential hang in nilfs_error on errors=remount-ro 2010-02-13 12:26:03 +09:00
the_nilfs.c nilfs2: issue discard request after cleaning segments 2010-02-13 12:26:02 +09:00
the_nilfs.h nilfs2: issue discard request after cleaning segments 2010-02-13 12:26:02 +09:00