From patchwork Mon Sep 28 04:50:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muneendra Kumar X-Patchwork-Id: 257511 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.9 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 B59DEC2D0A8 for ; Mon, 28 Sep 2020 11:44:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 62B472100A for ; Mon, 28 Sep 2020 11:44:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="aCS3nyJq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726608AbgI1Loe (ORCPT ); Mon, 28 Sep 2020 07:44:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726477AbgI1Lod (ORCPT ); Mon, 28 Sep 2020 07:44:33 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C846EC061755 for ; Mon, 28 Sep 2020 04:44:33 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id o20so739494pfp.11 for ; Mon, 28 Sep 2020 04:44:33 -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=KUpNaFgRl0HDw2e/wlfHjsxjrP9lxzT7gZCGVc2ORy0=; b=aCS3nyJqxTtO/FJVIt5ndajM5XThEEu9CgCky/KofpSZQGfnqxtpGus9leXPyXAHc/ +G4B0DTyIyBqKLbpT217fppxGLenGgLM9w5EGnGd2CRgjItB/NWSVwRBzD0Tom+I1ku0 vvgL4k+WaZ39d0JrxrsKas8fCs5Dhk3JCWHBQ= 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=KUpNaFgRl0HDw2e/wlfHjsxjrP9lxzT7gZCGVc2ORy0=; b=PeoXtC0JYyhOYo0Hr6yeX7Tm2ol365ay/DjSljmylAcHdc2ejG8923fWUc/eOK7dTN s+pCjq09DFvX/rxEbT9ktt4LGU3I7oXqfBB82OLG2wkl2TOUz/+mv671eSU/7Vj38OdV 90Xw3qAZCvg5SWqMa++mdP6y2xZ6wySkliGGtdWXctfn8LJLZzwWpZVT/4AUOLhsfB2N 1eJmzp+3uixvuXS+6tgaYGvODyiZztCz0+QxkR6Vb81IpcdgL6nxNEaGx88O3zxBuJsx TZnUFRPDydMn/IdGm7FzfqqDQbDlfrB0lRhOSHWN1xghwItChDEVQDZ94tYyJFGM7eHw Hg3A== X-Gm-Message-State: AOAM533/fQosMPSDUeEt8ChUR9JipM20YHHwU0NIT8NacQcBJTLASKGW rigE506UIJPav0q18QmRrc+bECf9jQNRW44S/xueD5sQ4aodi6oCcMNQMqD1yoFySipHnLGf1n1 cmj7BwAdNtTkW8DACnVJqZSm/9BpuVeH4CWCLt0o7E53mQ5NznWtU1/UhCpCO6UqYyQjowiUHvu UKIID3UWky X-Google-Smtp-Source: ABdhPJwdUuEPkTAFp3iFLjHD0nJ+a5RGRhooOzo1nyz4p1qQFxgx5YrOaBD4yF0FjOtGChQuo+AzHg== X-Received: by 2002:a62:3585:0:b029:142:2501:3985 with SMTP id c127-20020a6235850000b029014225013985mr1100489pfa.74.1601293472794; Mon, 28 Sep 2020 04:44:32 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id w19sm1468866pfq.60.2020.09.28.04.44.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Sep 2020 04:44:32 -0700 (PDT) From: Muneendra To: linux-scsi@vger.kernel.org, hare@suse.de Cc: jsmart2021@gmail.com, emilne@redhat.com, mkumar@redhat.com, Muneendra Subject: [PATCH v2 1/8] scsi: Added a new definition in scsi_cmnd.h Date: Mon, 28 Sep 2020 10:20:50 +0530 Message-Id: <1601268657-940-2-git-send-email-muneendra.kumar@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1601268657-940-1-git-send-email-muneendra.kumar@broadcom.com> References: <1601268657-940-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 Reviewed-by: Hannes Reinecke --- 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 e76bac4d14c5..e1883fee7659 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;