Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3096884yba; Sun, 28 Apr 2019 17:10:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNrY44poobmxn2h/WjudQsitwFIglxrEDU9QPH23N/5t1fJpzDzUMOjsVfgeNKrwaG4Z+1 X-Received: by 2002:a63:4a45:: with SMTP id j5mr57110017pgl.426.1556496635939; Sun, 28 Apr 2019 17:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556496635; cv=none; d=google.com; s=arc-20160816; b=oheHto4mwXS1EalGmJ8NcnUv1ZY0QInNdut7uR2oKwEj7p5UZdXRgAlXim+Z7ukpy9 bpBjmnOhb8HSlRF529pugjTXc+8fiQ1AJqMSgjMc4FfRule7zA1X5EmfqDfDUtOvlujV ATRM9t9ZKv2t+T5T9Q/Emg6nFy7vZSh2e1lFpqYVvdrTrtC5qgU8Gcv6Lv/t7w1vXPAh /HEcF2/PWShK8f0HTV9wT51//SWXaIQKPuZDxE7/nQk0ZdcGXlgBa2rHI7iWE8cIvozd vXxxNxbsJPrnBHloOpNGdNiIujt0bPi++CJORbnrWXA/MBlhL5Udglrh68dzTN0OEtkq 2Biw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5edmKMNesOmTcxFJnf9Lz0/KQgLhzB4TUwjfxcYB3Uk=; b=cTzsswq9/+oSrsexmNHRDHtBFSV5RC8fo6FMZPUc9WwFshBHOeOzsFauRKCAED8hT3 GkhSaxrbxTBFOX3n95sOKGhFa1T6F70WVgFrfOEXjPKzHGPG02xFyeaMuEVTVOhtEFiT vvsXdrDnyyE8gdTpg/UleKTxZP4pjBwt1kRZEQ6XKayDKGucsDgDLXqCA9D8oNRc0rB0 6gDgszJpsx4h3KxOZvLZ2Zc9hevxJT5+gy6vHTvKhSBtgEL+mjo/eIyBac6NjRSAK2eB pdDGHVjxsacydogc9SMSE4ynPJamD1gqDmoVclQ9fsgqag8d11ZSVjIXYIPyiUJiO+gR D76A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ez30jOyp; 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 n21si17824810pgh.52.2019.04.28.17.10.19; Sun, 28 Apr 2019 17:10:35 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ez30jOyp; 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 S1726718AbfD2AJ2 (ORCPT + 99 others); Sun, 28 Apr 2019 20:09:28 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:37106 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbfD2AJ1 (ORCPT ); Sun, 28 Apr 2019 20:09:27 -0400 Received: by mail-lj1-f196.google.com with SMTP id b12so6532770lji.4 for ; Sun, 28 Apr 2019 17:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5edmKMNesOmTcxFJnf9Lz0/KQgLhzB4TUwjfxcYB3Uk=; b=ez30jOypMMG21KI3XNAUZsoNnolgvRzYvcCoQeA037MgleXHJRmoIb5BJbrsv3QAz/ 4TqBnEJLGefSeW+uwDduv37MKUifx7r1q8Gsfc686s9vJ8f/4YhVRGHG0P02BMeb0UFG YPTWymrNHQ99FODG+f5nK6n1Ql7U9d28fc6kA= 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; bh=5edmKMNesOmTcxFJnf9Lz0/KQgLhzB4TUwjfxcYB3Uk=; b=gypAMBgFdu23ts2nnrCUiT2w54wWjFlmTW4loUg2E9PVRg6HTYSqtDsaBKDUVc+TaL sVQ/LYgsnbT01rRWgLfiv22yJgjY7YrU555hfQIvYjgviltU1zPAPMVeq1qfFjfFxAhS CMtD0viRQeZ8hBeBGsFV7h/nEqFvj0yjOG5IXdJ2HvvW4+McT8/5LIV3tJnpjIdUdAfB p2HV99/69ntXAFV5r0Uhfe/F3fsSQJNbxKCKCgYdD7526NBEPmWZ3eK0B/DVWsM7e5n1 Lzw8fB0xDybL1sx8gucDuwb/uhgFWKx8TTmJrVnyG0tL5FfWmLNlVKCbxZcufQ/VVoZH 0GVA== X-Gm-Message-State: APjAAAUR55No34a4dfdqVmwTUPZBeQUzoNom7PWy45BVFoYJYKGxikCY wd+c3937t1ng3RgGc4xKVdhaos9Zr6I= X-Received: by 2002:a2e:9e04:: with SMTP id e4mr19885753ljk.74.1556496565425; Sun, 28 Apr 2019 17:09:25 -0700 (PDT) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id e18sm6572689ljb.12.2019.04.28.17.09.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Apr 2019 17:09:24 -0700 (PDT) Received: by mail-lf1-f44.google.com with SMTP id w23so6431213lfc.9 for ; Sun, 28 Apr 2019 17:09:24 -0700 (PDT) X-Received: by 2002:a19:f50e:: with SMTP id j14mr4933626lfb.11.1556496564129; Sun, 28 Apr 2019 17:09:24 -0700 (PDT) MIME-Version: 1.0 References: <20190428115207.GA11924@ziepe.ca> <20190428234935.GA15233@mellanox.com> In-Reply-To: <20190428234935.GA15233@mellanox.com> From: Linus Torvalds Date: Sun, 28 Apr 2019 17:09:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Please pull RDMA subsystem changes To: Jason Gunthorpe Cc: Doug Ledford , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 28, 2019 at 4:49 PM Jason Gunthorpe wrote: > > It is for high availability - we have situations where the hardware > can fault and needs some kind of destructive recovery. For instance a > firmware reboot, or a VM migration. > > In these designs there may be multiple cards in the system and the > userspace application could be using both. Just because one card > crashed we can't send SIGBUS and kill the application, that breaks the > HA design. Why can't this magical application that is *so* special that it is HA and does magic mmap's of special rdma areas just catch the SIGBUS? Honestly, the whole "it's for HA" excuse stinks. It stinks because you now silently just replace the mapping with *garbage*. That's not HA, that's just random. Wouldn't it be a lot better to just get the SIGBUS, and then that magical application knows that "oh, it's gone", and it could - in its SIGBUS handler - just do the dummy anonymous mmap() with /dev/zero it if it wants to? Whatever. It really sounds like this is yet another horrible back for bad interfaces for all these "super-special high-end enterprise people". I hope that some day enterprise people will wake up and realize that "enterprise" seems to be often a code name for "lots of random hacks". Linus