]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: change the type of aio_t:res to long 21231/head
authorkungf <yang.wang@easystack.cn>
Fri, 30 Mar 2018 12:15:42 +0000 (20:15 +0800)
committerPrashant D <pdhange@redhat.com>
Wed, 4 Apr 2018 02:54:50 +0000 (22:54 -0400)
commitcf6c1d32e663ed203f70e97a66d5e28fa897d113
tree147acd44474188f9b8268672c8c19b1848effece
parent8ebcd8d68d691d89659f3fad69afb68c8458aada
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>
(cherry picked from commit a9b9477a44d4556f6827e6dc4b94a5f1f61ce8e1)
src/os/bluestore/KernelDevice.cc
src/os/bluestore/aio.h