diff options
author | Zhengyuan Liu <liuzhengyuan@kylinos.cn> | 2019-07-13 05:58:26 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-07-16 16:27:09 +0200 |
commit | dbd0f6d6c2a11eb9c31ca9cd454f95bb5713e92e (patch) | |
tree | bf49250d4c59d6b4ed45b9075cf9c3d793872064 /Documentation | |
parent | Merge tag 'for-linus-20190715' of git://git.kernel.dk/linux-block (diff) | |
download | linux-dbd0f6d6c2a11eb9c31ca9cd454f95bb5713e92e.tar.xz linux-dbd0f6d6c2a11eb9c31ca9cd454f95bb5713e92e.zip |
io_uring: fix the sequence comparison in io_sequence_defer
sq->cached_sq_head and cq->cached_cq_tail are both unsigned int. If
cached_sq_head overflows before cached_cq_tail, then we may miss a
barrier req. As cached_cq_tail always follows cached_sq_head, the NQ
should be enough.
Cc: stable@vger.kernel.org
Fixes: de0617e46717 ("io_uring: add support for marking commands as draining")
Signed-off-by: Zhengyuan Liu <liuzhengyuan@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions