diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-04-05 18:26:26 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-04-10 19:48:09 -0700 |
commit | fa64a0036cb69c50ac156a841f1b83ef0f84fc16 (patch) | |
tree | e9de1f47e853aabf53d9baa042b34b6f556e2400 /fs/f2fs/data.c | |
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>
Diffstat (limited to 'fs/f2fs/data.c')
0 files changed, 0 insertions, 0 deletions