From: Ryusuke Konishi Date: Sun, 31 Jan 2010 10:46:40 +0000 (+0900) Subject: nilfs2: fix potential hang in nilfs_error on errors=remount-ro X-Git-Tag: v2.6.34-rc1~213^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe5f171bb272946ce5fbf843ce2f8467d0d41b9a;p=pandora-kernel.git 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 --- Reading git-diff-tree failed