From: Stefan Metzmacher Date: Fri, 26 Feb 2021 11:31:29 +0000 (+0100) Subject: vfs_aio_pthread: don't allow async opens when multi channel is enabled. X-Git-Tag: tevent-0.11.0~1377 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c194c0bc61958b9f569b3808b45035c2de6caef;p=thirdparty%2Fsamba.git vfs_aio_pthread: don't allow async opens when multi channel is enabled. We will get this supported later, but for now just disable async opens as fsp->mid may not belong the first xconn of client->connections. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14449 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c index 6724e73984c..685f91d9f2b 100644 --- a/source3/modules/vfs_aio_pthread.c +++ b/source3/modules/vfs_aio_pthread.c @@ -464,6 +464,13 @@ static int aio_pthread_openat_fn(vfs_handle_struct *handle, return -1; } + if (fsp->conn->sconn->client->server_multi_channel_enabled) { + /* + * This module is not compatible with multi channel yet. + */ + aio_allow_open = false; + } + if (!aio_allow_open) { /* aio opens turned off. */ return openat(fsp_get_io_fd(dirfsp),