Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5214577ybl; Tue, 10 Dec 2019 02:26:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwwvngMXOulW4Nof5Zp6IBIbXNm2W3vhDjpXrRS/MhkM89ZM5MMV0pTkzJFZcWCgbj7yT5X X-Received: by 2002:aca:cf50:: with SMTP id f77mr3456382oig.60.1575973565997; Tue, 10 Dec 2019 02:26:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575973565; cv=none; d=google.com; s=arc-20160816; b=AppXnhmN28gm5ergUVTLuCrm50ZSamf/vWn2GNrpGXql6iqEwkqKweEXsPrLzaa6tV AyX6hUql+kE6HXQw2muTMVrv3vbKqCxxmi8CvKvoTtzoP7nxVSa6KGionayapNrLH6l/ bMd3XlJAEPAlytQk8VXrftFz+kzrEJJ8q0X6x8rTCfpyrQ6h58T2Oo/hbBK5flRAcjci izFWGfR1fIufkrUie8lc9wRy3jv1Pgqb50jQM0CfS3E8YHgRVGE6ABqme1gj9Epirc/E +uO5UZQrb6L3B/gZWGiDyqpfEGP2KCkKim/9cEGODYbGc9mWCsN6dka7OtILme9xsaf3 T7kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Lg4AhAvPA2MW169lce5BVlmxb20DdD9akZ2hhy6ig3k=; b=p+e1Ty8bmaH2yIM7S+MBi31W19bRJT4FkHzTBrLVjy9+0WtHjXfhCCXTJEzp9gAahr FHEI1iqtH54thA55fOt/avh3bgyiln9R3ggTruj2toWZ5kfvqDBLytZZ+0tV5LRfRgMg 8XYnnPKXsuQYcQNolnNUpCcehpk1KlTQ4lm2lw1V/aJjeExvSJLD0yk6uRhzzuMw6o8B HBKeUpjQ3xnjMXIhgMXXpLC4ydG6vdPTJa+pjjUkAWgAFSzjCdx5cmkfnbivjE4VSuEd qCiaBrVynVFZ/ey/9ELva/RGOZXvlus3aDfSr2oX6YQDqhnYO7ISoGXFGpFUOO8y8LOJ DGBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FTiCBLot; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si1572433otc.130.2019.12.10.02.25.53; Tue, 10 Dec 2019 02:26:05 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FTiCBLot; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727306AbfLJKZG (ORCPT + 99 others); Tue, 10 Dec 2019 05:25:06 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:36277 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727149AbfLJKZG (ORCPT ); Tue, 10 Dec 2019 05:25:06 -0500 Received: by mail-lf1-f68.google.com with SMTP id n12so13271986lfe.3; Tue, 10 Dec 2019 02:25:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Lg4AhAvPA2MW169lce5BVlmxb20DdD9akZ2hhy6ig3k=; b=FTiCBLotYFjh03wZj4knhcl8BMXBmq0zAi457bVRqn+6sc7GAOVzCj32SSKhUowk39 S2ANnGVWu8HiwFveq4v/GT0it5Jv4Sm4Cw6YEYYjHIIv8z7ODCH/ONDyFYw3xryCuAJx KZNz8eUOyKp6173vQJSbNSQBI9U/u21/q8DFVvBcwNBb12hms38D6VYBJCbD0jSNolt9 jCXg1kUrfpkD6fKz2WZJx/jLc7gy95Q5tA6mzMa4JIjleJzOzbloLczSC9mpyBblRcqo Gi4UxaDIVKn3aCRl/AmTyYrihS+4IqTCcCKpw8yEikIu4P77/3qmXdEVvWfES4cf7SUP PR6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Lg4AhAvPA2MW169lce5BVlmxb20DdD9akZ2hhy6ig3k=; b=ZULYYPBDUSehEINErlwtnX/Ewz29xY5WAs1jcaXTHUxlxrLH/pD12zpV5k7Us3k4Np mzpPNJWv1p+h3QNPpL3UFRmSB3LY0oJ6M1dtfBaXQmcGJ0vmRkr2bgTu1Bja6zqfgGqh J7Il9HMYBNc9mr0Ds8p8sG/TNbVU/wTMECBuQjxjKet+Envh2UgjKCrN1vOv+95hkdyB hefV/m3JewQlTOIFb28Bqc6GTqe6qWT4uas9rYMPEYbEDKysbqFe3o+ZxM5nbEw4j2u/ jQ/3hz7e3uYZbnawFOQXznAuP6pN8X9QmUQgvwJfGqgwWj4hl/FbzvAzvoG4tByF3QQy 4CQQ== X-Gm-Message-State: APjAAAU+ry7XEyUkVK+ARIroNrseW3G+m2+EI8KDBQPvsj/65/7VQvcw 99QyOz7jg3n1BrqHPrGF8fQ0ZHGqTyO/VwBV5dw= X-Received: by 2002:a19:6a06:: with SMTP id u6mr14474371lfu.187.1575973503519; Tue, 10 Dec 2019 02:25:03 -0800 (PST) MIME-Version: 1.0 References: <20191210080628.5264-1-sjpark@amazon.de> <20191210080628.5264-2-sjpark@amazon.de> <20191210101635.GD980@Air-de-Roger> <20191210102023.GF980@Air-de-Roger> In-Reply-To: <20191210102023.GF980@Air-de-Roger> From: SeongJae Park Date: Tue, 10 Dec 2019 11:24:37 +0100 Message-ID: Subject: Re: [Xen-devel] [PATCH v5 1/2] xenbus/backend: Add memory pressure handler callback To: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Cc: Jens Axboe , SeongJae Park , konrad.wilk@oracle.com, pdurrant@amazon.com, SeongJae Park , LKML , linux-block@vger.kernel.org, xen-devel@lists.xenproject.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 10, 2019 at 11:21 AM Roger Pau Monn=C3=A9 wrote: > > On Tue, Dec 10, 2019 at 11:16:35AM +0100, Roger Pau Monn=C3=A9 wrote: > > On Tue, Dec 10, 2019 at 08:06:27AM +0000, SeongJae Park wrote: > > > diff --git a/include/xen/xenbus.h b/include/xen/xenbus.h > > > index 869c816d5f8c..cdb075e4182f 100644 > > > --- a/include/xen/xenbus.h > > > +++ b/include/xen/xenbus.h > > > @@ -104,6 +104,7 @@ struct xenbus_driver { > > > struct device_driver driver; > > > int (*read_otherend_details)(struct xenbus_device *dev); > > > int (*is_ready)(struct xenbus_device *dev); > > > + unsigned (*reclaim)(struct xenbus_device *dev); > > > > ... hence I wonder why it's returning an unsigned when it's just > > ignored. > > > > IMO it should return an int to signal errors, and the return should be > > ignored. > > Meant to write 'shouldn't be ignored' sorry. Thanks for good opinions and comments! I will apply your comments in the n= ext version. Thanks, SeongJae Park > > Roger.