From patchwork Mon Jul 3 12:57:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Henrique Cerri X-Patchwork-Id: 783466 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3x1RxY6lZRz9s78; Mon, 3 Jul 2017 22:57:37 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical-com.20150623.gappssmtp.com header.i=@canonical-com.20150623.gappssmtp.com header.b="v45UtF2K"; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1dS0v1-0006q8-B7; Mon, 03 Jul 2017 12:57:35 +0000 Received: from mail-qt0-f179.google.com ([209.85.216.179]) by huckleberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1dS0us-0006lj-25 for kernel-team@lists.ubuntu.com; Mon, 03 Jul 2017 12:57:26 +0000 Received: by mail-qt0-f179.google.com with SMTP id b40so33934493qtb.2 for ; Mon, 03 Jul 2017 05:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jdE2mRvPCcJLe3ukmFQddRhub1j76CN+sujNv3nHF4w=; b=v45UtF2Kmqob3zEzv6Qg5ReSM61tTxVkS19J96SwrP/UAM+665Y9btuBJGkB9gM2Lb IqFGnnxNgrMBWpW1GQDOZhvQ/mM9xSy+ZI0IsAHlqE1rgf6XIxnJp2LRBHKVMTlC1GvA sK8SS8kWB49XbjZX1+p10ij4zv+NvIlJujmFBi7Q7rrQN5ZS6GmUmFf7iS0sclADkrmV 3+o7wRHRMqY9ZJa10cQHN4vSNzeVQP0DUpkNg4tGCIHdQe6YOITZh+6QRfwQpUjihROM 3omFRnQO9lL0Z8TnrmDosdGfO08MUD+hXr+roo6Sce9nsIs34eu9QGg743pVdkO4h32e ZyQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jdE2mRvPCcJLe3ukmFQddRhub1j76CN+sujNv3nHF4w=; b=lx6uX7AG7k+ARtYbUZmnPJwQsxKfKX1WcZ+5RBiHDBuO2eludGS6W71EzalO8A7tge 6Zy8LO3tzK2thPGldIFxbETVUS3+lr/a1zwl9QLgaxQwLlWxx/VomjsYVs/jLGCEDPO1 F53QTPWYenTYs1RXdvv674tV7+RulcjCXn0wWGQaMTa4ROdyJxNLdNMHt0jcBtSrAa+h gAu1JzM4aFwHGbI6aLC6VBdNU1VBnoBtECWZ2k+17SqWQoCx7NjEKgbh8mLo5gagOWBX CHBZivNMzwoujDMNWlaawF3JDi3ZHORt5V4+YareAssaFv0r+KZ++kEEiGON1xcYWxkY HAKA== X-Gm-Message-State: AKS2vOz+xO5nF02qDnbyFlqB/INOFQB3JCusEjc6gTTsFKlBHQVGTpem ckd1dDoFE8q9AF+u/10= X-Received: by 10.237.58.35 with SMTP id n32mr43688772qte.109.1499086644887; Mon, 03 Jul 2017 05:57:24 -0700 (PDT) Received: from localhost.localdomain ([187.34.40.196]) by smtp.gmail.com with ESMTPSA id n69sm11699553qke.68.2017.07.03.05.57.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Jul 2017 05:57:24 -0700 (PDT) From: Marcelo Henrique Cerri To: kernel-team@lists.ubuntu.com Subject: [xenial][PATCH v3 6/8] Drivers: hv: util: don't forget to init host_ts.lock Date: Mon, 3 Jul 2017 09:57:03 -0300 Message-Id: <1499086625-15995-7-git-send-email-marcelo.cerri@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1499086625-15995-1-git-send-email-marcelo.cerri@canonical.com> References: <1499086625-15995-1-git-send-email-marcelo.cerri@canonical.com> Cc: alexng@microsoft.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: kernel-team-bounces@lists.ubuntu.com From: Dexuan Cui Without the patch, I always get a "BUG: spinlock bad magic" warning. Fixes: 3716a49a81ba ("hv_utils: implement Hyper-V PTP source") Signed-off-by: Dexuan Cui Cc: Vitaly Kuznetsov Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman (cherry picked from commit 5a16dfc855127906fcd2935fb039bc8989313915) Signed-off-by: Marcelo Henrique Cerri --- drivers/hv/hv_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c index 45a4f92ecb39..b2cc46e3dd86 100644 --- a/drivers/hv/hv_util.c +++ b/drivers/hv/hv_util.c @@ -580,6 +580,8 @@ static int hv_timesync_init(struct hv_util_service *srv) if (!hyperv_cs) return -ENODEV; + spin_lock_init(&host_ts.lock); + INIT_WORK(&wrk.work, hv_set_host_time); /*