aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-04-05 18:26:26 +0800
committerMoyster <oysterized@gmail.com>2017-05-21 18:40:23 +0200
commitaff30ee33ced32408a989a0b845c322a1bef8889 (patch)
tree7b268b33d2ae69f2496a697ef86d16c1db7b3a27 /include
parent76da35a30b148c093ce3ef72b9ebbe90118cb3b5 (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> Conflicts: fs/f2fs/segment.c
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions