From patchwork Mon Feb 15 07:40:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kashyap Desai X-Patchwork-Id: 12088813 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.1 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,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 8BE83C433E0 for ; Mon, 15 Feb 2021 16:07:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 512DD64DF0 for ; Mon, 15 Feb 2021 16:07:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232049AbhBOQHX (ORCPT ); Mon, 15 Feb 2021 11:07:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231209AbhBOPr4 (ORCPT ); Mon, 15 Feb 2021 10:47:56 -0500 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52DEEC061786 for ; Mon, 15 Feb 2021 07:40:25 -0800 (PST) Received: by mail-pj1-x1044.google.com with SMTP id gx20so4140279pjb.1 for ; Mon, 15 Feb 2021 07:40:25 -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=A6QzahvyaSfp2UWOam+EBuhZMAevNzh1YdwFtjgK84E=; b=DM7Iv2oV/WuU7oXJ0MeVR90RTvlwthfLV5S+kz5oHI0jIcLi6PpVkLJz2GPimQZcfx wfDRmy2C8IkrPxKcrd7wkAg112mGhXWuXGyh6P5/zzDhWd3j7C/AUUP/EAvk/vNyw3jH LnLW0iUBv5iy6+D8QpDtdERjLvPj/1diHXbeY= 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=A6QzahvyaSfp2UWOam+EBuhZMAevNzh1YdwFtjgK84E=; b=N1nK7F26FSllKPviARGpIhEPm802UdTA+gl1U479uEEYaI42rTuU4NHyiFIiUh7LSZ 0WdN7iw2vVa1kkB+7Usc9YyAdUkbnl/4/KrMMgedISe0I0ndyJXqnJAuFXxwDJvGfeeA 3HZSvAs+mcLqGT0fpe2NrdCzwEDjBdYCdME+kk6Hxa6XKdpqsDe853+LNOOfaZagltF9 tAH7xSgmLyPKCbhBnE2HKrTVFj0nd6QIgGjXEHdrRJBKdnT74vT6UWxllejkzJDdYKAv VmagAZjo3rlSGP02GCbBVjsbmueiZTNQf8yz9J3D+autseHdo/UniaIa7HXgGGZM+T1m k1jg== X-Gm-Message-State: AOAM5317SIrQ/Iw94q+fO/+enNESzKhMaE7u6aMR96K3MmnC5swhL/a4 iYAUQOmwNxTmOCWURpYS2Byaj7BwbykvrA5w8gUE8ckvqPNwTgnW6037YGX5Oz1z/4FAZjCr+4h eCbp7dO5FpdtvRlXgjaoAm+shbUw6nv1yYI2MoRXW0Vt8Dn/bL5ecwEAqI8PSrUqs4QoRweLbPX Fa1Zg1taI3 X-Google-Smtp-Source: ABdhPJz3psfC9q6lAHi6PwJQPj/Wt+Xg2HVqIr45R/ZU6X0M6PEe8vUmpVcatXsZLP2XJ4JkyM/1pw== X-Received: by 2002:a17:90a:9918:: with SMTP id b24mr3745754pjp.127.1613403624103; Mon, 15 Feb 2021 07:40:24 -0800 (PST) Received: from drv-bst-rhel8.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id m4sm18031341pgu.4.2021.02.15.07.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 07:40:23 -0800 (PST) From: Kashyap Desai To: linux-scsi@vger.kernel.org Cc: Kashyap Desai Subject: [PATCH v4 0/5] io_uring iopoll in scsi layer Date: Mon, 15 Feb 2021 13:10:43 +0530 Message-Id: <20210215074048.19424-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 v4 -> - Merge "[PATCH v3] scsi_debug: add new defer_type for mq_poll" into this series. - Fix IO hang issue of above patch and created v4. 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 (5): add io_uring with IOPOLL support in scsi layer megaraid_sas: iouring iopoll support scsi_debug : iouring iopoll support scsi_debug: add new defer type for mq poll 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 | 226 +++++++++++++++++--- drivers/scsi/scsi_lib.c | 29 ++- include/scsi/scsi_cmnd.h | 1 + include/scsi/scsi_host.h | 11 + 8 files changed, 359 insertions(+), 42 deletions(-) base-commit: d39bfd0686fd2b21f857c61bb2753db3a932cb24