diff options
author | Jeff Layton <jlayton@kernel.org> | 2019-11-13 09:56:06 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-11-14 18:44:51 +0100 |
commit | 6a81749ebe5f1b52d7eeb8a1031deb8d520f23e6 (patch) | |
tree | 750b990337ef4e197b7da915acec97d8f00d3a4c /kernel/gcov/gcc_base.c | |
parent | a81bc3102b4ffb885f34855d0133f862f915ab13 (diff) |
ceph: increment/decrement dio counter on async requests
Ceph can in some cases issue an async DIO request, in which case we can
end up calling ceph_end_io_direct before the I/O is actually complete.
That may allow buffered operations to proceed while DIO requests are
still in flight.
Fix this by incrementing the i_dio_count when issuing an async DIO
request, and decrement it when tearing down the aio_req.
Fixes: 321fe13c9398 ("ceph: add buffered/direct exclusionary locking for reads and writes")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'kernel/gcov/gcc_base.c')
0 files changed, 0 insertions, 0 deletions