Skip to content

Commit 3afb7cd

Browse files
committed
Merge PR ceph#62783 into main
* refs/pull/62783/head: libcephfs_proxy: fully initialize async I/O structure Reviewed-by: Sachin Prabhu <[email protected]> Reviewed-by: Shwetha Acharya <[email protected]>
2 parents b8d02eb + a5e90ff commit 3afb7cd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.githubmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,4 @@ anoopcs9 Anoop C S <[email protected]>
194194
dubeyko Viacheslav Dubeyko <[email protected]>
195195
bill-scales Bill Scales <[email protected]>
196196
kchheda3 Krunal Chheda <[email protected]>
197+
Shwetha-Acharya Shwetha Acharya <[email protected]>

src/libcephfs_proxy/libcephfsd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,12 +1558,12 @@ static int32_t libcephfsd_ll_nonblocking_rw(proxy_client_t *client,
15581558
}
15591559
io_info = &async_io->io_info;
15601560

1561+
memset(io_info, 0, sizeof(struct ceph_ll_io_info));
15611562
io_info->callback = libcephfsd_ll_nonblocking_rw_cbk;
15621563
io_info->priv = (void *)(uintptr_t)req->ll_nonblocking_rw.info;
15631564
io_info->iov = &async_io->iov;
15641565
io_info->iovcnt = 1;
15651566
io_info->off = req->ll_nonblocking_rw.off;
1566-
io_info->result = 0;
15671567
io_info->write = req->ll_nonblocking_rw.write;
15681568
io_info->fsync = req->ll_nonblocking_rw.fsync;
15691569
io_info->syncdataonly = req->ll_nonblocking_rw.syncdataonly;

0 commit comments

Comments
 (0)