From: Jaegeuk Kim Date: Wed, 29 Oct 2014 21:37:22 +0000 (-0700) Subject: f2fs: avoid race condition in handling wait_io X-Git-Tag: omap-for-v3.19/fixes-rc1~146^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a8f8ca582a1bafe6b620e000316206c8719f1d0;p=pandora-kernel.git f2fs: avoid race condition in handling wait_io __submit_merged_bio f2fs_write_end_io f2fs_write_end_io wait_io = X wait_io = x complete(X) complete(X) wait_io = NULL wait_for_completion() free(X) spin_lock(X) kernel panic In order to avoid this, this patch removes the wait_io facility. Instead, we can use wait_on_all_pages_writeback(sbi) to wait for end_ios. Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed