Messages in this thread Patch in this message | | | From | Alessio Igor Bogani <> | Subject | [PATCH -tip] remove the BKL: remove "BKL auto-drop" assumption from ext3_remount() | Date | Thu, 23 Apr 2009 15:16:26 +0200 |
| |
Fix ext3_remount()'s "schedule() drops the BKL automatically" assumption, when ext3_mark_recovery_complete(), which can sleep, does not do that it can lock up.
Signed-off-by: Alessio Igor Bogani <abogani@texware.it> --- fs/ext3/super.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index dc905f9..3fa457a 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c @@ -2561,9 +2561,11 @@ static int ext3_remount (struct super_block * sb, int * flags, char * data) * We have to unlock super so that we can wait for * transactions. */ + unlock_kernel(); unlock_super(sb); ext3_mark_recovery_complete(sb, es); lock_super(sb); + lock_kernel(); } else { __le32 ret; if ((ret = EXT3_HAS_RO_COMPAT_FEATURE(sb, -- 1.6.0.4
| |