From patchwork Mon Feb 1 05:16:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kashyap Desai X-Patchwork-Id: 12059001 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=-11.4 required=3.0 tests=BAYES_00,DATE_IN_PAST_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MIME_HEADER_CTYPE_ONLY,MIME_NO_TEXT,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 06E1AC433E0 for ; Mon, 1 Feb 2021 13:17:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D0E9C64E2A for ; Mon, 1 Feb 2021 13:17:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231530AbhBANQ6 (ORCPT ); Mon, 1 Feb 2021 08:16:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231649AbhBANQq (ORCPT ); Mon, 1 Feb 2021 08:16:46 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A988CC061573 for ; Mon, 1 Feb 2021 05:16:06 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id r38so12031631pgk.13 for ; Mon, 01 Feb 2021 05:16:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=bKrIaZHqj2kVjdr++9NJqgunOk7EF53LWAI4/d2ef0Q=; b=GZWWJS+5iLBUbUpGnT6s2jaV3b/PqsCI5f7gdfm/3RQkXI2SL7gWMN6wHRT8DBFTWM Ry3bMBVOIPmZYq7Iu1p7uKx5QH49bwCk9vqmEMoNpR/aGzj5Yo18IE/s2tV0qmDNdLGg 4YCTZ+YWh8r4iryA7TQcJOM0RzMzbpm3Ci4/I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bKrIaZHqj2kVjdr++9NJqgunOk7EF53LWAI4/d2ef0Q=; b=VsWdB57AdRqaeI/umseIZRPxOt+k8zJj34YKhKK1x4yynhQRMQu3Ch6nwZN060uTFU kaB2Fpeie7/lIQ7SGPyY70Mz0ULqvd0ZqRvvCS6Tzkshz56S4vO0hPljYJI7Vy//fFEF PvN0M+IA2c+ayd3V6QI+wDAHGezM6RK8HRZE7Up09ZaIqrOMWqhTmeQbIk6f0uoitXVX sCFe5L2uXiiGYaxSfN8nP0ai4suhcNhXF9Rup/HO3/aFiS+91cRiA2buqNum6rAuGmQ1 itKT7HRfPTx47LTO9f54FuWtO/Fd/o8yAdREEN3v8GMxxgZ+Isi6pQ/ZCxnLL6h+TKqh cwzA== X-Gm-Message-State: AOAM532fRJftswMrURrDmylmQCfqVRrLBwVCK7PGH5umjSOSRPUO/S+S tqLtAE3HIdoHH+ImXSq4BVcaxWrEw2PWWGFu1Dtg3RAIMDibK+7cruN3dgzUNrlb+ihnYkiuTKK MCXfmhnrf0EIMLf5VBXoBSzsXqm1Y3apIY2nA8ENcg/TJab2YJaG1GWFoOacIiXuFD7Lxen/UWh DG9/wSp5lU X-Google-Smtp-Source: ABdhPJwDCBHU/7a68fI03Bo0OtCsym7bxlUO4KiGAVDgrqBtqTd3bSZGb6UGizrjDzN5orHXC3sh0A== X-Received: by 2002:a62:75d0:0:b029:1b8:ae4d:620c with SMTP id q199-20020a6275d00000b02901b8ae4d620cmr16244830pfc.80.1612185365740; Mon, 01 Feb 2021 05:16:05 -0800 (PST) Received: from drv-bst-rhel8.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id h2sm18573898pfk.4.2021.02.01.05.16.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 05:16:04 -0800 (PST) From: Kashyap Desai To: linux-scsi@vger.kernel.org Cc: Kashyap Desai Subject: [PATCH v3 0/4] io_uring iopoll in scsi layer Date: Mon, 1 Feb 2021 10:46:15 +0530 Message-Id: <20210201051619.19909-1-kashyap.desai@broadcom.com> X-Mailer: git-send-email 2.18.1 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This patch series is to support io_uring iopoll feature in scsi stack. This patch set requires shared hosttag support. This patch set is created on top of 5.12/scsi-staging branch. https://kernel.googlesource.com/pub/scm/linux/kernel/git/mkp/scsi/+/refs/heads/5.12/scsi-staging v3 -> - added reviewed-by tag - Fix comment provided by Hannes for below patch. https://patchwork.kernel.org/project/linux-scsi/patch/20201203034100.29716-3-kashyap.desai@broadcom.com/ - Fix Functional issue of poll_queues settings not working in v2. v2 -> - updated feedback from v1. - added reviewed-by & tested-by tag - remove flood of prints in scsi_debug driver during iopoll reported by Douglas Gilbert. - added new patch to support to get shost from hctx. added new helper function "scsi_init_hctx" v1 -> Fixed warnings in scsi_debug driver. Reported-by: kernel test robot Kashyap Desai (4): add io_uring with IOPOLL support in scsi layer megaraid_sas: iouring iopoll support scsi_debug : iouring iopoll support scsi: set shost as hctx driver_data drivers/scsi/megaraid/megaraid_sas.h | 3 + drivers/scsi/megaraid/megaraid_sas_base.c | 87 +++++++++++-- drivers/scsi/megaraid/megaraid_sas_fusion.c | 42 ++++++- drivers/scsi/megaraid/megaraid_sas_fusion.h | 2 + drivers/scsi/scsi_debug.c | 130 ++++++++++++++++++++ drivers/scsi/scsi_lib.c | 29 ++++- include/scsi/scsi_cmnd.h | 1 + include/scsi/scsi_host.h | 11 ++ 8 files changed, 291 insertions(+), 14 deletions(-) base-commit: a927ec3995427e9c47752900ad2df0755d02aba5