diff options
author | 2017-04-05 18:26:26 +0800 | |
---|---|---|
committer | 2017-04-10 19:48:09 -0700 | |
commit | fa64a0036cb69c50ac156a841f1b83ef0f84fc16 (patch) | |
tree | e9de1f47e853aabf53d9baa042b34b6f556e2400 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f2fs: introduce f2fs_wait_discard_bios (diff) | |
download | wireguard-linux-fa64a0036cb69c50ac156a841f1b83ef0f84fc16.tar.xz wireguard-linux-fa64a0036cb69c50ac156a841f1b83ef0f84fc16.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions