diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-04-05 13:26:26 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-04-11 05:48:09 +0300 |
commit | fa64a0036cb69c50ac156a841f1b83ef0f84fc16 (patch) | |
tree | e9de1f47e853aabf53d9baa042b34b6f556e2400 /fs/f2fs/data.c | |
parent | d431413f00319919ed2adac0d58225160bd1d8fb (diff) | |
download | linux-fa64a0036cb69c50ac156a841f1b83ef0f84fc16.tar.xz |
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