From patchwork Thu Dec 3 03:40:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kashyap Desai X-Patchwork-Id: 338180 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=-12.6 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 BA134C64E8A for ; Thu, 3 Dec 2020 11:42:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 538E220758 for ; Thu, 3 Dec 2020 11:42:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388789AbgLCLl4 (ORCPT ); Thu, 3 Dec 2020 06:41:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387620AbgLCLl4 (ORCPT ); Thu, 3 Dec 2020 06:41:56 -0500 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94A91C061A4D for ; Thu, 3 Dec 2020 03:41:15 -0800 (PST) Received: by mail-pl1-x643.google.com with SMTP id f1so988108plt.12 for ; Thu, 03 Dec 2020 03:41:15 -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=zr8p3wgtwTC6YyFDrL3uDXi7i4GLOjKJSIG+gVKlpZ4=; b=cQxNV3INrWicNy/XiaoigtY/O3AJyuYEb+oK7ld74G5puIsL0R6lrOpCZwQASXYx6i sPmkrYW/tMObquEsQDhToVuNre8syYxJU2/LWQfEPiwKPEWuhpwHJ0AiqUyuQ5hVhX5C qAvTe4OW5LAO+TzkuYqoclrRYunpA1TF1p30o= 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=zr8p3wgtwTC6YyFDrL3uDXi7i4GLOjKJSIG+gVKlpZ4=; b=MnK9vgG2Cgk9QydiXDlUrqy4mTAwGRxTFxK1lMinno8p6Eea/kCpq5/3IR5jgyfwwp tBvgrvOKQpaF1RwR3c3F+Y+lfRHldbnSeuZ4Zchf4U0Sn9Oi/5u81k6KOEXamiQLMaCd P4/olynPedyDlmNv1XOxkVOgB0Xl/t2ROlKDI03GyGhhJnvtEx3tabQPLAuv3SGtR0QE fVlxiM3JmMZXLI1RW9yiZNUxEgODI6wkXwmPrCJkEoajCHgRt7zIasXOfR/ggKfastCH PgHYLFCfvu87RPwlhDX2O4c3115okoqncINjb+nwtAdlYlIV/hFUGd/f4UzC3tRjeOQN y2Iw== X-Gm-Message-State: AOAM530Ofb0GY5bToVhJAOjH7MEdS0HA6QfmQZwXXmrJVTcVevo9BeKI GoDNNiQJKHz/yoqU5j/OaUUqIbx859li94RiS3ynbKLbChbyalUoJ0Re2J9NIrMqblA1BR24nsM ffLsSwXUO0PLUFa3o6GCcqR8rYIOdsXF/C6vf/21mCk2E5VHoOi/2PCBh76OEeIGzAk+BkoIYSM dRrxVpUFhs X-Google-Smtp-Source: ABdhPJy5Fivo0WV2NeUJTu39Xl3X9+u8GKxdl9wUMub0Su4Cdb+m2cw6BIMde8gFgNkbwPWPiD6VQA== X-Received: by 2002:a17:90a:d494:: with SMTP id s20mr2717864pju.178.1606995674422; Thu, 03 Dec 2020 03:41:14 -0800 (PST) Received: from drv-bst-rhel8.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id cl23sm1310331pjb.23.2020.12.03.03.41.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 03:41:13 -0800 (PST) From: Kashyap Desai To: linux-scsi@vger.kernel.org Cc: Kashyap Desai Subject: [PATCH v2 0/4] io_uring iopoll in scsi layer Date: Thu, 3 Dec 2020 09:10:56 +0530 Message-Id: <20201203034100.29716-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 for-next branch of https://kernel.googlesource.com/pub/scm/linux/kernel/git/axboe/linux-block v2 -> - updated feedback from v1. - add 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 | 2 + drivers/scsi/megaraid/megaraid_sas_base.c | 90 ++++++++++++-- drivers/scsi/megaraid/megaraid_sas_fusion.c | 43 ++++++- drivers/scsi/megaraid/megaraid_sas_fusion.h | 3 + drivers/scsi/scsi_debug.c | 130 ++++++++++++++++++++ drivers/scsi/scsi_lib.c | 28 ++++- include/scsi/scsi_cmnd.h | 1 + include/scsi/scsi_host.h | 11 ++ 8 files changed, 294 insertions(+), 14 deletions(-) base-commit: 0eedceafd3a63fd082743c914853ef4b9247dbe6