svn commit: r248729 - head/sys/dev/nvme

Jim Harris jimharris at FreeBSD.org
Tue Mar 26 18:01:25 UTC 2013


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)


More information about the svn-src-all mailing list