From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [RPC PATCH 2/5] block: extend rq_flag_bits Date: Tue, 18 Nov 2014 20:41:56 +0100 Message-ID: <1416339719-8488-3-git-send-email-m@bjorling.me> References: <1416339719-8488-1-git-send-email-m@bjorling.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: thornber@redhat.com, bvanassche@acm.org, jmad@itu.dk, =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: hch@infradead.org, axboe@fb.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Return-path: Received: from mail-la0-f47.google.com ([209.85.215.47]:43603 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755509AbaKRTmi (ORCPT ); Tue, 18 Nov 2014 14:42:38 -0500 Received: by mail-la0-f47.google.com with SMTP id hz20so703817lab.20 for ; Tue, 18 Nov 2014 11:42:36 -0800 (PST) In-Reply-To: <1416339719-8488-1-git-send-email-m@bjorling.me> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: =46rom: Jesper Madsen The rq_flag_bits is extended by REQ_NVM and REQ_NVM_MAPPED REQ_NVM is used to detect request have through LightNVM on submission, = and can be detected on completion. REQ_NVM_MAPPED is used to detect if request have mapped appropriately t= hrough LightNVM. The latter is added temponarily to debug LightNVM targets and will be removed later. Signed-off-by: Matias Bj=C3=B8rling --- include/linux/blk_types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 66c2167..b1d2f4d 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -191,6 +191,8 @@ enum rq_flag_bits { __REQ_END, /* last of chain of requests */ __REQ_HASHED, /* on IO scheduler merge hash */ __REQ_MQ_INFLIGHT, /* track inflight for MQ */ + __REQ_NVM, /* request is queued via lightnvm */ + __REQ_NVM_MAPPED, /* lightnvm mapped this request */ __REQ_NR_BITS, /* stops here */ }; =20 @@ -245,5 +247,7 @@ enum rq_flag_bits { #define REQ_END (1ULL << __REQ_END) #define REQ_HASHED (1ULL << __REQ_HASHED) #define REQ_MQ_INFLIGHT (1ULL << __REQ_MQ_INFLIGHT) +#define REQ_NVM (1ULL << __REQ_NVM) +#define REQ_NVM_MAPPED (1ULL << __REQ_NVM_MAPPED) =20 #endif /* __LINUX_BLK_TYPES_H */ --=20 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html