jbd2: move bdget out of critical section
authorZhu Yanhai <zhu.yanhai@gmail.com>
Mon, 4 Apr 2011 16:58:12 +0000 (12:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 4 Apr 2011 16:58:12 +0000 (12:58 -0400)
commit50f689af019b19f9b9a39be782c21b6f52b1615a
tree40b80bb3acc51ebfba7199c0fadff25da2ee6d51
parent0ce790e7d736cedc563e1fb4e998babf5a4dbc3d
jbd2: move bdget out of critical section

bdget() should not be called when we hold spinlocks since
it might sleep.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Zhu Yanhai <gaoyang.zyh@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/journal.c