From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F4E0C433DB for ; Thu, 18 Mar 2021 05:44:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CBBA364F0C for ; Thu, 18 Mar 2021 05:44:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229540AbhCRFoQ (ORCPT ); Thu, 18 Mar 2021 01:44:16 -0400 Received: from verein.lst.de ([213.95.11.211]:40062 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbhCRFoJ (ORCPT ); Thu, 18 Mar 2021 01:44:09 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 89D8868C8C; Thu, 18 Mar 2021 06:44:07 +0100 (CET) Date: Thu, 18 Mar 2021 06:44:07 +0100 From: Christoph Hellwig To: Jens Axboe Cc: io-uring@vger.kernel.org, joshi.k@samsung.com, hch@lst.de, kbusch@kernel.org, linux-nvme@lists.infradead.org, metze@samba.org Subject: Re: [PATCH 5/8] block: wire up support for file_operations->uring_cmd() Message-ID: <20210318054407.GD28063@lst.de> References: <20210317221027.366780-1-axboe@kernel.dk> <20210317221027.366780-6-axboe@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210317221027.366780-6-axboe@kernel.dk> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org > +int blk_uring_cmd(struct block_device *bdev, struct io_uring_cmd *cmd, > + enum io_uring_cmd_flags issue_flags) > +{ > + struct request_queue *q = bdev_get_queue(bdev); > + > + if (!q->mq_ops || !q->mq_ops->uring_cmd) > + return -EOPNOTSUPP; > + > + return q->mq_ops->uring_cmd(q, cmd, issue_flags); > +} This has absilutely not business in blk-mq. It is a plain block_device_operation that has nothing to do with requests or blk-mq.