changeset 13360:c28d415b5009

975 disable disksort for SSDs Reviewed by: Jason King <jason.brian.king@gmail.com> Reviewed by: Rich Lowe <richlowe@richlowe.net> Reviewed by: Adam Leventhal <ahl@delphix.com> Reviewed by: Dan McDonald <danmcd@nexenta.com>
author Garrett D'Amore <garrett@nexenta.com>
date Mon, 02 May 2011 12:32:04 -0700
parents 10bc9c3abe6e
children 2502776ad797
files usr/src/uts/common/io/scsi/targets/sd.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/scsi/targets/sd.c	Mon May 02 11:46:10 2011 -0700
+++ b/usr/src/uts/common/io/scsi/targets/sd.c	Mon May 02 12:32:04 2011 -0700
@@ -31674,6 +31674,8 @@
 			 */
 			if (inqb1[4] == 0 && inqb1[5] == 1) {
 				un->un_f_is_solid_state = TRUE;
+				/* solid state drives don't need disksort */
+				un->un_f_disksort_disabled = TRUE;
 			}
 			mutex_exit(SD_MUTEX(un));
 		} else if (rval != 0) {