Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5918032imb; Fri, 8 Mar 2019 05:28:19 -0800 (PST) X-Google-Smtp-Source: APXvYqz0J0dRKbjt72HbelJzDPw1iJviyNMAqmc80AZVlXmhXpAhv2eG7jPqyWR5UTSGl5rbiih0 X-Received: by 2002:a65:6290:: with SMTP id f16mr16635021pgv.106.1552051699704; Fri, 08 Mar 2019 05:28:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552051699; cv=none; d=google.com; s=arc-20160816; b=02OAqdup6zpujlUTkRffWnkl+gZkDdtkIt806tTS+NHrPm1CBdr+hm2qq/JFZzLPIz WJ/KmqA6lbrjLU+fB7ZWG2hL6B6Pa3OAQlFmGR6IwJsvE9nZRTy5VfowKlhdu5Gh430n TBGH7+rWb2ZdziIoqelef9Q7bCzXNDp7urZD5zUZMAO36rc3o7/lSVpQi+YcERUb3HiL T+oXBSgVnJInmPqHG+UCpo1fbblMt+oVC8tMwLXyNUU/ps+J3L7g5zbb3bQLuHxD9esb sWIgRc8mZw/EA9bfq483OQMw6icdYYoUC5vIFzrBYzIDgobXrExyvflPiuEqyfZ67pPp DUFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=x3alRKNYyNseSisEU5C0/m8xk0UH69S14VC5WbCs16E=; b=wthbdEaHVO34VIydd4n62G1yPpV6B6BezmpAD8wlowX2Wozu2LF660JQVM0+mSppAQ w4wNnB/FK7uVRvyz3b8hzKceSuKFTFIgowpoJM4T/bzsNqFm1gQQgKuPty845f/e7oJk nxPVk3hu4rGMcEYyLErv29yo25csaUTlRwzSKyTaMXDPBSMlpqTAY0TOd0CaQ1iaJK7K QPfrNXBVBLfp/GvZZR0P3wQiFSFDjspX7WytbWFsxKK+aj5SHHDcH2k+5PMzW714si2H IpcQ+nrHQpRK9nr1/YvWMxLXZU7MBqugiHG+puQrdYslFwRSDqhM7/cscDt8xwDn69LL WVYw== 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 134si7183865pfz.274.2019.03.08.05.28.04; Fri, 08 Mar 2019 05:28:19 -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; 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 S1726601AbfCHN0P (ORCPT + 99 others); Fri, 8 Mar 2019 08:26:15 -0500 Received: from verein.lst.de ([213.95.11.211]:53833 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726171AbfCHN0P (ORCPT ); Fri, 8 Mar 2019 08:26:15 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 5085E68C4E; Fri, 8 Mar 2019 14:26:09 +0100 (CET) Date: Fri, 8 Mar 2019 14:26:08 +0100 From: Christoph Hellwig To: Sagi Grimberg Cc: Johannes Thumshirn , Chaitanya Kulkarni , Christoph Hellwig , Linux Kernel Mailinglist , Linux NVMe Mailinglist Subject: Re: [PATCH] nvmet: disable direct I/O when unavailable Message-ID: <20190308132608.GB18218@lst.de> References: <20190221182234.22345-1-jthumshirn@suse.de> <6c3fa30a-d516-a453-a001-1014202ff9ce@suse.de> <71982410-d373-a659-0c0f-8aadf06d1d96@grimberg.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <71982410-d373-a659-0c0f-8aadf06d1d96@grimberg.me> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 25, 2019 at 01:18:10PM -0800, Sagi Grimberg wrote: > >> Frankly, we have a ton of testing related special cases in the kernel. >> >> This one is a) simple and small, only 10 LoC, b) far away from the fast >> path or any other place where it could have any impact on legitimate >> users and c) it prints an informal message showing you what happened. >> >> Sorry but this is a https://xkcd.com/386/ moment. > > How about we just fail it with a proper error message and let the > user set buffered_io instead of trying to get smart here... Yes, would be my preference.