Re: [PATCH] vhost-scsi: flush backend after device ioctls

Mike Christie <[email protected]> Mon, 3 Aug 2026 19:02:43 -0500
Newsgroups dev.linux.lists.virtualization,org.kernel.vger.kvm,org.kernel.vger.netdev
Message-ID <[email protected]>
On 7/23/26 5:54 AM, Jia Jia wrote:
> The owner must keep the old mappings valid until the ioctl returns.
> Remapping or dropping them from another userspace thread before then is
> outside the lifetime assumption of this transition barrier.

Ok I get it now. For some reason I thought that was valid.

For the patch we don't want to flush if vhost_dev_ioctl fails
and there's no reason to flush for operations like
VHOST_GET_FORK_FROM_OWNER or VHOST_SET_OWNER.

Could vhost_dev_ioctl return when a flush is needed?