• Ryusuke Konishi's avatar
    nilfs2: fix potential hang in nilfs_error on errors=remount-ro · fe5f171b
    Ryusuke Konishi authored
    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: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
    fe5f171b
super.c 29.3 KB