Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5064706imm; Tue, 9 Oct 2018 09:10:53 -0700 (PDT) X-Google-Smtp-Source: ACcGV60VT1rMxxYo7CERB+52ll92aszQRfiPRLnexV2Q7L1iOHgap/dETW240tTV61Axwc2LpOcR X-Received: by 2002:a65:5c81:: with SMTP id a1-v6mr21949511pgt.390.1539101453597; Tue, 09 Oct 2018 09:10:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539101453; cv=none; d=google.com; s=arc-20160816; b=ubIQuKimKPYi8+56Up19sO5uIWfeFAJTs5naTr9PBqSLuuqbUVbSZyiX9zlINgsEPr qxjFjblXx4zzo6JLFsWw0G/fvbB4cY5CytgPwdZlacMDFVZQe2CTbhPlOgWOerfgTghf i095tuYSEBV47vEFOFADGV6vWpaDPk0V2qsMToFtrH+8jKsxZUHDQq+L1S/7ewWkzeQ6 FaEDdAWK4rse3WALjvXfOUxCoVCmSoHHJQL29aj0Y+fQ9B44laPPDpOSZIflI8B3d+6a 5hO6oNwtZYpqmOgbJiZGkASaCdwcE3vEKeKXkj64V5lv04KhWiV+Us98MW5eJeE50ViC xW2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=FRvp25k2j/h5o5KkaO8AvkxLS3t/QfO/1yGfyhYAeNo=; b=RFz/rbX/SJ2WTbLuiwsY/6Z8P1ZYAbPNofd1cAwLTAJmf6z3V3+CjEcca1kLcunSS8 /ZV9zhGkkPpOJ0U0wQA6jxzeRTz7d11VyT3OSXgseJZKo2E7xObn4Cev1yiH4xe7N7X6 XxdFct0rQArk1Zb3/1MOOTj9wXod7/IkKgFOlkJV/mYftuhISHCW0ZvdHCQAfDcYmJXl 7Hg4iXHAkYjKQI8VTnU1tOVHg7jS1pWW0bU5ti9vCJVpbVJkq8OifhtWoL7qfo3JYxc4 tsNpQR8OuahFAa5KOKWIeZschRGoFwgs5FTN+JvJSontcXbhTVqzCCCMnUAOYP1+Y+RY gv/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 74-v6si21796860pga.231.2018.10.09.09.10.38; Tue, 09 Oct 2018 09:10:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727081AbeJIX1l (ORCPT + 99 others); Tue, 9 Oct 2018 19:27:41 -0400 Received: from mx2.suse.de ([195.135.220.15]:52410 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726418AbeJIX1l (ORCPT ); Tue, 9 Oct 2018 19:27:41 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1ED98ADE3; Tue, 9 Oct 2018 16:10:01 +0000 (UTC) From: Juergen Gross To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Cc: boris.ostrovsky@oracle.com, Juergen Gross Subject: [PATCH] xen: drop writing error messages to xenstore Date: Tue, 9 Oct 2018 18:09:59 +0200 Message-Id: <20181009160959.31076-1-jgross@suse.com> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org xenbus_va_dev_error() will try to write error messages to Xenstore under the error//error node (with something like "device/vbd/51872"). This will fail normally and another message about this failure is added to dmesg. I believe this is a remnant from very ancient times, as it was added in the first pvops rush of commits in 2007. So remove the additional message when writing to Xenstore failed as a minimum step. Signed-off-by: Juergen Gross --- I am considering removing the Xenstore write altogether, but I'm not sure it isn't needed e.g. by xend based installations. So please speak up in case you know why this write is there. --- drivers/xen/xenbus/xenbus_client.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c index a1c17000129b..e17ca8156171 100644 --- a/drivers/xen/xenbus/xenbus_client.c +++ b/drivers/xen/xenbus/xenbus_client.c @@ -278,10 +278,8 @@ static void xenbus_va_dev_error(struct xenbus_device *dev, int err, dev_err(&dev->dev, "%s\n", printf_buffer); path_buffer = kasprintf(GFP_KERNEL, "error/%s", dev->nodename); - if (!path_buffer || - xenbus_write(XBT_NIL, path_buffer, "error", printf_buffer)) - dev_err(&dev->dev, "failed to write error node for %s (%s)\n", - dev->nodename, printf_buffer); + if (path_buffer) + xenbus_write(XBT_NIL, path_buffer, "error", printf_buffer); kfree(printf_buffer); kfree(path_buffer); -- 2.16.4