Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2013 18:01:24 +0000 (UTC)
From:      Jim Harris <jimharris@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r248729 - head/sys/dev/nvme
Message-ID:  <201303261801.r2QI1O7m053842@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jimharris
Date: Tue Mar 26 18:01:24 2013
New Revision: 248729
URL: http://svnweb.freebsd.org/changeset/base/248729

Log:
  Do not look at the namespace's thin provisioning field to determine if DSM
  command is supported.  The two are not related.
  
  Sponsored by:	Intel

Modified:
  head/sys/dev/nvme/nvme_ns.c

Modified: head/sys/dev/nvme/nvme_ns.c
==============================================================================
--- head/sys/dev/nvme/nvme_ns.c	Tue Mar 26 17:30:40 2013	(r248728)
+++ head/sys/dev/nvme/nvme_ns.c	Tue Mar 26 18:01:24 2013	(r248729)
@@ -339,7 +339,7 @@ nvme_ns_construct(struct nvme_namespace 
 	}
 #endif
 
-	if (ctrlr->cdata.oncs.dsm && ns->data.nsfeat.thin_prov)
+	if (ctrlr->cdata.oncs.dsm)
 		ns->flags |= NVME_NS_DEALLOCATE_SUPPORTED;
 
 	if (ctrlr->cdata.vwc.present)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303261801.r2QI1O7m053842>