]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs: fix to access nullified flush_cmd_control pointer
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 8 Dec 2016 00:23:32 +0000 (16:23 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 8 Dec 2016 02:56:50 +0000 (18:56 -0800)
commit5eba8c5d1fb3af28b2073ba5228d4998196c1bcc
treec873248bed74d949213de8a3c42438b2b8dfef14
parenta2125ff7dd1ed3a2a53cdc1f8f9c9cec9cfaa7ab
f2fs: fix to access nullified flush_cmd_control pointer

f2fs_sync_file()             remount_ro
 - f2fs_readonly
                               - destroy_flush_cmd_control
 - f2fs_issue_flush
   - no fcc pointer!

So, this patch doesn't free fcc in this case, but just stop its kernel thread
which sends flush commands.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c