Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp851299pxt; Thu, 5 Aug 2021 13:20:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1E1gZKAC0kK5OuyEeotsGmgAQCjdKUnpv1bRE5PrQv9UuUHQ0rjVddD+3a1r/4YaYnnPZ X-Received: by 2002:a05:6e02:218c:: with SMTP id j12mr150063ila.32.1628194809287; Thu, 05 Aug 2021 13:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628194809; cv=none; d=google.com; s=arc-20160816; b=Q2fouOtDSne7jHEnCFWTObgFzjNLFulYfFmXpJcm8E4UaIaAqQ7B765NBwDfrQpAwH vjL7FdDxPG0TZuo7pbWBZ1Ty0kBHUSek553Qi0tYwYRFryDdy4YWkpbFecls0YBmtzDQ +9ZqNDl3/9yUQzx/1UGHd2g+VzZu2KL409WkD7OalKBYU02ZZzlSmI5IM0QW/WPaNNTc T5A1Xhvj45ul7oC/y9yJ4bHOiAFR1M1PfqW6b1nZv+4vIZ3cqIV+Rwxio+rKJIdyFqT7 WjWKDWM8BpOMMCSXwaEy7B8xZYoZVxjVClOJd/FgZl39Stidm8V239ogosp5dNIOtbX3 wqVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bmFli8bE6vXrEgP/ptQ3DmvVz12vBrJl7darjgfCNvI=; b=qaB9FGS40d2ctBzO7k+MPwvyp4bgudpa5+mq4OTAvtIAKlR/zt6AxI+rxjMEyoOd3c KHE79Z4uTZw0Udq2OIo4Z1Ka6XM7V8Jq9eUdIyoayF1ZMcS92LVtBbcXXRfXSi6PUjNM Ow+UVIA0awcbZMqyA+i6sEeLiLVNLnVY/4UTP0WAR1nsqpz+UHoVU7XewxKX3A8STxv1 HmU9JkOGf5zWoak5KJDgUQv5Icx2MTp+M0q4jMkXc2uR84BKRryf10QKNL8D0KrHkt02 cRbRUquWkTBZ1OPD8sZazWktLwyG2erIov3b+zh2wKDoj6TU6iKGfaSeTqN/rqettgA+ 0PZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JRrBH6Xo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si6610022jal.57.2021.08.05.13.19.56; Thu, 05 Aug 2021 13:20:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JRrBH6Xo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241038AbhHESRW (ORCPT + 99 others); Thu, 5 Aug 2021 14:17:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:45820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232969AbhHESRU (ORCPT ); Thu, 5 Aug 2021 14:17:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7DD556044F; Thu, 5 Aug 2021 18:17:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628187426; bh=BHkLr8RyM5LfUpw3kjUHGAEgyKjazgrTeuyD8z7tr7s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JRrBH6XoeiVtgg/0EXT3NHWAM6gpsR5pntg8vy4jRMu6XrVfC/+OfuOKoZy6F2TBE P8yQiWVD+JhHK8RP9hNBWFLaeWgxtn3LwmUBFRTaxVhOAmBpbqATPPHySc4VXKjbkO W1Bo/cON+KPowuhm5xAWkPRF4WpAGFCRB2/JwqyU= Date: Thu, 5 Aug 2021 20:17:03 +0200 From: Greg Kroah-Hartman To: Bart Van Assche Cc: longli@linuxonhyperv.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, Long Li , Jonathan Corbet , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Bjorn Andersson , Hans de Goede , Dan Williams , Maximilian Luz , Mike Rapoport , Ben Widawsky , Jiri Slaby , Andra Paraschiv , Siddharth Gupta , Hannes Reinecke , linux-doc@vger.kernel.org Subject: Re: [Patch v5 2/3] Drivers: hv: add Azure Blob driver Message-ID: References: <1628146812-29798-1-git-send-email-longli@linuxonhyperv.com> <1628146812-29798-3-git-send-email-longli@linuxonhyperv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 05, 2021 at 10:06:03AM -0700, Bart Van Assche wrote: > On 8/5/21 12:00 AM, longli@linuxonhyperv.com wrote: > > diff --git a/include/uapi/misc/hv_azure_blob.h b/include/uapi/misc/hv_azure_blob.h > > new file mode 100644 > > index 0000000..87a3f77 > > --- /dev/null > > +++ b/include/uapi/misc/hv_azure_blob.h > > @@ -0,0 +1,35 @@ > > +/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ > > +/* Copyright (c) 2021 Microsoft Corporation. */ > > + > > +#ifndef _AZ_BLOB_H > > +#define _AZ_BLOB_H > > + > > +#include > > +#include > > +#include > > + > > +/* user-mode sync request sent through ioctl */ > > +struct az_blob_request_sync_response { > > + __u32 status; > > + __u32 response_len; > > +}; > > + > > +struct az_blob_request_sync { > > + guid_t guid; > > + __u32 timeout; > > + __u32 request_len; > > + __u32 response_len; > > + __u32 data_len; > > + __u32 data_valid; > > + __aligned_u64 request_buffer; > > + __aligned_u64 response_buffer; > > + __aligned_u64 data_buffer; > > + struct az_blob_request_sync_response response; > > +}; > > + > > +#define AZ_BLOB_MAGIC_NUMBER 'R' > > +#define IOCTL_AZ_BLOB_DRIVER_USER_REQUEST \ > > + _IOWR(AZ_BLOB_MAGIC_NUMBER, 0xf0, \ > > + struct az_blob_request_sync) > > + > > +#endif /* define _AZ_BLOB_H */ > > So this driver only supports synchronous requests? Is it likely that users > will ask for support of an API that supports having multiple requests > outstanding at the same time without having to create multiple user space > threads? They seem to want to go around the block layer and reinvent it all from scratch, which is crazy, so let them have their slow i/o :(