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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 65849C41513 for ; Wed, 29 May 2024 05:05:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=TkLi7QJRJk+eDm0XKX9y4O+chg+2e2GHQobCf0qIp3Q=; b=gj4NS4sjKr2dVoN7NbpiB85aEo KHpteWSN5KDdEIJ+cwoVagn3ihnRuLEm6zkLDA4R6Es/DGL73POSXPqLA338LmVn5pxF2towCOSI+ UzltJceeHrBY/5cSp4bCAAFc7/vMxF2vST2TCsua8P0VsldDQjBh7CkZlgUi6cNVCLeZdTuia+y9q 2gpwwg6vERzc1FkE6I+aZYXrehc98nfRs/Yf+2CnW7Dr0KW/L4kNhdb26DtgRiecmd7tKMQ+vZWwC QzruRoxu9T6KnGi9W2FRZPd5Ivqms4ASA/Xcv0rNFytE3jkkw8K7R8LrnClPPpqdGMKq55vybPoJS /lKRwIYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCBUx-00000002pTd-0sQV; Wed, 29 May 2024 05:05:15 +0000 Received: from 2a02-8389-2341-5b80-7775-b725-99f7-3344.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:7775:b725:99f7:3344] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCBUs-00000002pSJ-2CVr; Wed, 29 May 2024 05:05:11 +0000 From: Christoph Hellwig To: Jens Axboe , "Martin K. Petersen" Cc: Richard Weinberger , Anton Ivanov , Johannes Berg , Josef Bacik , Ilya Dryomov , Dongsheng Yang , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , linux-um@lists.infradead.org, linux-block@vger.kernel.org, nbd@other.debian.org, ceph-devel@vger.kernel.org, xen-devel@lists.xenproject.org, linux-scsi@vger.kernel.org Subject: convert the SCSI ULDs to the atomic queue limits API Date: Wed, 29 May 2024 07:04:02 +0200 Message-ID: <20240529050507.1392041-1-hch@lst.de> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-um" Errors-To: linux-um-bounces+linux-um=archiver.kernel.org@lists.infradead.org Hi all, this series converts the SCSI upper level drivers to the atomic queue limits API. The first patch is a bug fix for ubd that later patches depend on and might be worth picking up for 6.10. The second patch changes the max_sectors calculation to take the optimal I/O size into account so that sd, nbd and rbd don't have to mess with the user max_sector value. I'd love to see a careful review from the nbd and rbd maintainers for this one! The following patches clean up a few lose ends in the sd driver, and then convert sd and sr to the atomic queue limits API. The final patches remove the now unused block APIs, and convert a few to be specific to their now more narrow use case. The patches are against Jens' block-6.10 tree. Due to the amount of block layer changes in here, and other that will depend on it, it would be good if this could eventually be merged through the block tree, or at least a shared branch between the SCSI and block trees. Diffstat: arch/um/drivers/ubd_kern.c | 10 + block/blk-settings.c | 238 +------------------------------------------ drivers/block/nbd.c | 2 drivers/block/rbd.c | 1 drivers/block/xen-blkfront.c | 4 drivers/scsi/sd.c | 218 ++++++++++++++++++++------------------- drivers/scsi/sd.h | 6 - drivers/scsi/sd_zbc.c | 27 ++-- drivers/scsi/sr.c | 42 ++++--- include/linux/blkdev.h | 40 +++---- 10 files changed, 196 insertions(+), 392 deletions(-)