From patchwork Thu Oct 22 12:34:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muneendra Kumar M X-Patchwork-Id: 11851853 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8977892C for ; Thu, 22 Oct 2020 19:28:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 473C02466D for ; Thu, 22 Oct 2020 19:28:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="NbDiTG86" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2895887AbgJVT2Y (ORCPT ); Thu, 22 Oct 2020 15:28:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2508349AbgJVT2X (ORCPT ); Thu, 22 Oct 2020 15:28:23 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DCE1C0613CE for ; Thu, 22 Oct 2020 12:28:23 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id e10so1815311pfj.1 for ; Thu, 22 Oct 2020 12:28:23 -0700 (PDT) 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=WPjHEdnxhvpJLKnX52AO9fh8LWhqZ0MvewT18vMQDic=; b=NbDiTG86eCwnO8aZbR+4i9Ie+Y8JNDmorvtEI2bbrZkjpkyN4fT5o4g+rWH66w8svC cNJcV5yA9pPGs/BOX4IciHP3oBmNz91ThAPdsOrRtpYwdPPCCCNn2Io+Nl4MtX/1dcO/ 5PzDx5xvbYwH19PZWr8m89refnplKGMQTGU2I= 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=WPjHEdnxhvpJLKnX52AO9fh8LWhqZ0MvewT18vMQDic=; b=kcEw8VCCy6oahvyaVuLyqmkgpVEY4TS0R30TEOv5HhUN4YirajQgsawaxOh6E1/EF1 Pcvra4D4hQIE5/WARHaZUNLslEEZOx4qWn+vVVt4EGIuDFRxCitCrq9HV3ZTfQgSGmDp JInPkejOIn+zjPYPrCntgGuLK6hb79KhOvRMoyMF5Awtdnlqq+MKwJgBcCaCx8bUwCuo nPqlNcxC5/shjy6+dt0OhLsVR51gS/TOVKu2dBo+59s3BSooFzxJe/KKQmGKBAv6asrg elq5G4DNohelegyRJjpfm2IRDWtkYGL0OsOd6ecXATW0Z1WpW7D3XJfNzJdMosMW12Rd pmPg== X-Gm-Message-State: AOAM533RZYk+H9lnb7azKcOaO7mvGBeYFjBGrCfzn1BhkFuStmMBfusk NrsTx9TRk7494bRvCsxNAQ9hXsvZT06yeVw6n2lo07Uh0rN6CBnePF7n/he4xj6v8BxhVj4In/V 2SrEPlB6ziQJy52EBPMqJ8+Dl+1bEQCWODqbHbGaghvcVEnjQv9202Ocl1nanSHSDULSIF5xUWo cQfZ7197BaJWQ= X-Google-Smtp-Source: ABdhPJzfnch0q8dPa5/CUaNBtsESWkq8jzRLy11dRKC92H7T8IqHYx1AM060AVFgYOCSWmebBRBckA== X-Received: by 2002:a17:90a:1b6e:: with SMTP id q101mr3547396pjq.79.1603394902689; Thu, 22 Oct 2020 12:28:22 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id s10sm2846759pji.7.2020.10.22.12.28.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Oct 2020 12:28:22 -0700 (PDT) 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 v4 1/5] scsi: Added a new definition in scsi_cmnd.h Date: Thu, 22 Oct 2020 18:04:47 +0530 Message-Id: <1603370091-9337-2-git-send-email-muneendra.kumar@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1603370091-9337-1-git-send-email-muneendra.kumar@broadcom.com> References: <1603370091-9337-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 --- 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;