Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755711AbbFQX7r (ORCPT ); Wed, 17 Jun 2015 19:59:47 -0400 Received: from mga03.intel.com ([134.134.136.65]:32642 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755499AbbFQX6i (ORCPT ); Wed, 17 Jun 2015 19:58:38 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,636,1427785200"; d="scan'208";a="729575591" Subject: [PATCH 13/15] libnvdimm: flag libnvdimm block devices as non-rotational From: Dan Williams To: axboe@kernel.dk, linux-nvdimm@ml01.01.org Cc: boaz@plexistor.com, toshi.kani@hp.com, Vishal Verma , linux-kernel@vger.kernel.org, hch@lst.de, linux-acpi@vger.kernel.org, linux-fsdevel@vger.kernel.org, mingo@kernel.org Date: Wed, 17 Jun 2015 19:55:57 -0400 Message-ID: <20150617235557.12943.75518.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <20150617235209.12943.24419.stgit@dwillia2-desk3.amr.corp.intel.com> References: <20150617235209.12943.24419.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.17.1-8-g92dd MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 943 Lines: 26 ...since they are effectively SSDs as far as userspace is concerned. Reviewed-by: Vishal Verma Signed-off-by: Dan Williams --- drivers/nvdimm/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvdimm/core.c b/drivers/nvdimm/core.c index 99cf95af5f24..fa82f215990d 100644 --- a/drivers/nvdimm/core.c +++ b/drivers/nvdimm/core.c @@ -220,6 +220,7 @@ void nd_blk_queue_init(struct request_queue *q) blk_queue_bounce_limit(q, BLK_BOUNCE_ANY); if (IS_ENABLED(CONFIG_ND_IOSTAT)) queue_flag_set_unlocked(QUEUE_FLAG_IO_STAT, q); + queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q); } EXPORT_SYMBOL(nd_blk_queue_init); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/