]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: change the type of aio_t:res to long
authorkungf <yang.wang@easystack.cn>
Fri, 30 Mar 2018 12:15:42 +0000 (20:15 +0800)
committerkungf <yang.wang@easystack.cn>
Fri, 30 Mar 2018 12:15:42 +0000 (20:15 +0800)
commita9b9477a44d4556f6827e6dc4b94a5f1f61ce8e1
treee46c983a54869ec5bf58c56c9df27f08ba0a90f0
parent6aceb66524fe633dce0707f624e625d5beb6ee04
os/bluestore: change the type of aio_t:res to long

io_event::res was assigned to io_t::rval, but io_event::res
is long, if rval is int, this will cause overflow.

Fixes: http://tracker.ceph.com/issues/23527
Signed-off-by: kungf <yang.wang@easystack.cn>
src/os/bluestore/KernelDevice.cc
src/os/bluestore/aio.h