Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic revert rev. 1.7 - seems the polling damages comma...



details:   https://anonhg.NetBSD.org/src/rev/567f9f8f5a6d
branches:  trunk
changeset: 348496:567f9f8f5a6d
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu Oct 20 18:42:28 2016 +0000

description:
revert rev. 1.7 - seems the polling damages command queue on live system

diffstat:

 sys/dev/ic/ld_nvme.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 38f0883336e6 -r 567f9f8f5a6d sys/dev/ic/ld_nvme.c
--- a/sys/dev/ic/ld_nvme.c      Thu Oct 20 17:42:29 2016 +0000
+++ b/sys/dev/ic/ld_nvme.c      Thu Oct 20 18:42:28 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ld_nvme.c,v 1.8 2016/09/27 03:33:32 pgoyette Exp $     */
+/*     $NetBSD: ld_nvme.c,v 1.9 2016/10/20 18:42:28 jdolecek Exp $     */
 
 /*-
  * Copyright (C) 2016 NONAKA Kimihiro <nonaka%netbsd.org@localhost>
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_nvme.c,v 1.8 2016/09/27 03:33:32 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_nvme.c,v 1.9 2016/10/20 18:42:28 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -186,7 +186,8 @@
 
        /* wait for the sync to finish */
        return nvme_ns_sync(sc->sc_nvme, sc->sc_nsid, sc,
-           NVME_NS_CTX_F_POLL, ld_nvme_syncdone);
+           (flags & LDFL_POLL) ? NVME_NS_CTX_F_POLL : 0,
+           ld_nvme_syncdone);
 }
 
 static void



Home | Main Index | Thread Index | Old Index