From: Maxim Date: Mon, 14 Mar 2011 13:19:21 +0000 (+0000) Subject: GFS2: Adding missing unlock_page() X-Git-Tag: v2.6.39-rc1~488^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c474f7bc1ef70bc05ce486e7e7e524124122de8;p=pandora-kernel.git GFS2: Adding missing unlock_page() gfs2_write_begin() calls grab_cache_page_write_begin() that returns *locked* page. Correspondent error-handling path lacks for unlock_page() call: > out: > if (error == 0) > return 0; > > page_cache_release(page); The whole system hangs if gfs2_unstuff_dinode() called from gfs2_write_begin() failed for some reason. Reported-by: Maxim Signed-off-by: Maxim Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed