From patchwork Tue Nov 3 07:15:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muneendra Kumar X-Patchwork-Id: 315375 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.2 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,SIGNED_OFF_BY,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 68405C388F9 for ; Tue, 3 Nov 2020 14:08:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DDBD722264 for ; Tue, 3 Nov 2020 14:08:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="K2+iM6Tl" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729528AbgKCOIl (ORCPT ); Tue, 3 Nov 2020 09:08:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729361AbgKCOIk (ORCPT ); Tue, 3 Nov 2020 09:08:40 -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 6E417C0613D1 for ; Tue, 3 Nov 2020 06:08:40 -0800 (PST) Received: by mail-pl1-x643.google.com with SMTP id x23so8620931plr.6 for ; Tue, 03 Nov 2020 06:08:40 -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:in-reply-to:references; bh=tGPF1tZzbjg9RDUrVBN5ZLmFYpdjHRMWH4T2ul90m0c=; b=K2+iM6Tl55o1HcoKQEBSmoT3t7GxzV/wDQgS88qTXlW3BFGrWXaga+DkSQtQVqIRrX 5aKfa6G+6cWEDra7rVD/lhrSsbtSPhDgq2VAi/bYj74KXvc0kJISlnpqqVc0P/jufNxZ ZGaTy3LmSzzoUIb5pXmHksv7IyNR4jOa4BBVU= 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:in-reply-to :references; bh=tGPF1tZzbjg9RDUrVBN5ZLmFYpdjHRMWH4T2ul90m0c=; b=OTPQBaP1HhTkLzszPPPt1jtWfdQCu67/MLBAXt3+XcHHJZQXgbJw8+IDuDQFGXYoCU VeaK2VqIznYouB6djWmYVMUhTXPDRgCojvjIXk+ziO1drkS/8M1ESqZqq8gUUbQBdIEe TY6JyJhy4osQHmdmPVpIqR+LGkeYPyV/vbsoW4iJiJl76hU7P0ZEX9IdYs0eylZWqH7J AsOzecyVHp9iNiP/qSkyZT0LBV1x/29Oz8EYdhqbsnJZ0IMyzx9KLcOBWhQYK2QKGXe2 FfClQ5lZg0dH0Wxs65TEA9gF6CQrir3n+H9ZqBUJlf2nVnUfC2QW7XTddEY3fTM3x+ga FP+g== X-Gm-Message-State: AOAM531dTeFmH5/uxIG2YWaNrgexQoEnaX0fb+i4BjrXK37IoyZTyAZa XXzwKyExHpdo4YPnXI57URvABopGXG6dUwGiouwmnBVpNuOUVwk8tOYbPpMxhAD5oqUaxYRnlp6 beBm8tMnN8q93o1KIMVwGTu0+AbaAUNLsGE6a8/TpwUm61K/K0rwZeyoFBvno3Vn1wQ8EIVvq8I 3JnN9C0ee5biw= X-Google-Smtp-Source: ABdhPJyf7BIEUIRwRqDLlrGE3Zla/rRkBItcySnBqzdS9tbPCAF2Ff9yjLc6uZvmPQQGZMt4QMDYFg== X-Received: by 2002:a17:902:b196:b029:d5:a8fd:9a1c with SMTP id s22-20020a170902b196b02900d5a8fd9a1cmr26011382plr.44.1604412519300; Tue, 03 Nov 2020 06:08:39 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id r19sm3525959pjo.23.2020.11.03.06.08.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Nov 2020 06:08:38 -0800 (PST) From: Muneendra To: linux-scsi@vger.kernel.org, michael.christie@oracle.com, hare@suse.de Cc: jsmart2021@gmail.com, emilne@redhat.com, mkumar@redhat.com, Muneendra Subject: [patch v5 1/5] scsi: Added a new definition in scsi_cmnd.h Date: Tue, 3 Nov 2020 12:45:08 +0530 Message-Id: <1604387712-19801-2-git-send-email-muneendra.kumar@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1604387712-19801-1-git-send-email-muneendra.kumar@broadcom.com> References: <1604387712-19801-1-git-send-email-muneendra.kumar@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Added a new definition SCMD_NORETRIES_ABORT in scsi_cmnd.h The SCMD_NORETRIES_ABORT defines the third bit postion in scmd->state Signed-off-by: Muneendra --- v5: No Change v4: No Change v3: No change v2: Modified the commit log --- include/scsi/scsi_cmnd.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h index 69ade4fb71aa..8dec4ec6bd5f 100644 --- a/include/scsi/scsi_cmnd.h +++ b/include/scsi/scsi_cmnd.h @@ -64,6 +64,9 @@ struct scsi_pointer { /* for scmd->state */ #define SCMD_STATE_COMPLETE 0 #define SCMD_STATE_INFLIGHT 1 +#define SCMD_NORETRIES_ABORT 2 /* If this bit is set then there won't be any + * retries of scmd on abort success + */ struct scsi_cmnd { struct scsi_request req;