commit | fa64a0036cb69c50ac156a841f1b83ef0f84fc16 | [log] [tgz] |
---|---|---|
author | Chao Yu <yuchao0@huawei.com> | Wed Apr 05 18:26:26 2017 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Mon Apr 10 19:48:09 2017 -0700 |
tree | e9de1f47e853aabf53d9baa042b34b6f556e2400 | |
parent | d431413f00319919ed2adac0d58225160bd1d8fb [diff] |
f2fs: prevent waiter encountering incorrect discard states In f2fs_submit_discard_endio, we will wake up waiter before setting discard command states, so waiter may use incorrect states. Change the order between complete() and states setting to fix this issue. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>