Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1206920imp; Thu, 21 Feb 2019 21:56:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IasqPDu/dnB89VDzYwTr8AcMLttBM4zfZ8nhkIVgvTwVy+uim36J9c6ZXlFHklnDaKEA4kj X-Received: by 2002:a63:d4f:: with SMTP id 15mr2386182pgn.162.1550814975552; Thu, 21 Feb 2019 21:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550814975; cv=none; d=google.com; s=arc-20160816; b=FYl+jiTFQ453kQsHEsKkLnHaCaxdyykOTsCBZacPfVNQxfIvEzr1gZ8Gi4NGvm8Uq2 32SOAJISvqkRV32iPdIH5r+xbAhi/bISEojVqqjFMkQmt39j/vJS5T8DJm99JisVuX+e /NUl7DMvb6JjKdnd6mbilIchzFihS7pByFpQpIi4scZSiHG3nBCg4xFIALnJVHx/7ssu DxKmcLgWv3Vidykc2WrvnlULstAmr44Q3O2fzjVus7JgJSkAmLLvtmzDQ39KA7PYkkZH 4hCfhQfS4QE3b1RCBDkZBF+5nxpNDP6pJfu/iJq9wA1YB0rocO1oZujg3htIs/7wVJDm vL7w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=2lj+jmfZ3ZmiONRBxCnK7XovdEuHRwe+q9Ug+QsF+9A=; b=ZHxKRMBG1D+fiZ8NDnYJ/82b5QvLFiylENdEtp6xdvSYTvYGwxZ1ay5+7O+ZTQVqAw a61ZumelxHwMFWRFV8/wvvv4+3oML0mDQKdCL6qxZZI38SJStzzLNHUBICocATnG0tMi xj3ABq23y0pWAWcYyz253c4uVNFtpO5NcmdYZk/SM5vjg+AdxAVmag+GbAIGjE02Iqxf 02+BgzAKkUOlzvGnbKGuDJoe7jviSTLIwJD9DlO9ld41CAYKO9ENkqm5Nn4Jv+gybWtp bnp2/x3h5Q6ocSurFwsnVkxSca8Jd6Ne3eXhzrK3NPbkoHYEK9KecrD4YvPjHfcrs2Wn E7qg== 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 l67si591860pfc.147.2019.02.21.21.56.00; Thu, 21 Feb 2019 21:56:15 -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 S1726083AbfBVFzE (ORCPT + 99 others); Fri, 22 Feb 2019 00:55:04 -0500 Received: from mx2.suse.de ([195.135.220.15]:54986 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725792AbfBVFzE (ORCPT ); Fri, 22 Feb 2019 00:55:04 -0500 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 49E6FACD4; Fri, 22 Feb 2019 05:55:02 +0000 (UTC) Subject: Re: [PATCH] nvmet: disable direct I/O when unavailable To: Chaitanya Kulkarni , Christoph Hellwig Cc: Linux Kernel Mailinglist , Linux NVMe Mailinglist References: <20190221182234.22345-1-jthumshirn@suse.de> From: Johannes Thumshirn Openpgp: preference=signencrypt Autocrypt: addr=jthumshirn@suse.de; prefer-encrypt=mutual; keydata= xsFNBFTTwPEBEADOadCyru0ZmVLaBn620Lq6WhXUlVhtvZF5r1JrbYaBROp8ZpiaOc9YpkN3 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mo5eko4Ms2rOEdG jKsZetkdPKGBd2qVxxyZgzUkgRXduvyux04b9erEpJmoIXs/lE0IRbL9A9rJ6ASjFPGpXYrb 73pb6Dtkdpvv+hoe4cKeae4dS0AnDc7LWSW3Ub0n61uk/rqpTmKuesmTZeB2GHzLN5GAXfNj ELHAeSVfFLPRFrjF5jjKJkpiyq98+oUnvTtDIPMTg05wSN2JtwKnoQ0TAIHWhiF6coGeEfY8 ikdVLSZDEjW54Td5aIXWCRTBWa6Zqz/G6oESF+Lchu/lDv5+nuN04KZRAwCpXLS++/givJWo M9FMnQSvt4N95dVQE3kDsasl960ct8OzxaxuevW0OV/jQEd9gH50RaFif412DTrsuaPsBz6O l2t2TyTuHm7wVUY2J3gJYgG723/PUGW4LaoqNrYQUr/rqo6NXw6c+EglRpm1BdpkwPwAng63 W5VOQMdnozD2RsDM5GfA4aEFi5m00tE+8XPICCtkduyWw+Z+zIqYk2v+zraPLs9Gs0X2C7X0 yvqY9voUoJjG6skkOToGZbqtMX9K4GOv9JAxVs075QRXL3brHtHONDt6udYobzz+ Message-ID: <6c3fa30a-d516-a453-a001-1014202ff9ce@suse.de> Date: Fri, 22 Feb 2019 06:55:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/02/2019 01:41, Chaitanya Kulkarni wrote: [...] > > As per specified in the patch, this is only useful for testing, then we > should modify the test scripts so that on creation of the ctrl we switch > to the buffered I/O before running fio. Or on any other file-system that does not support DIO.. > > OR > > Similar result can be achieved by setting buffered I/O flag > buffered_io=1 before enabling the name-space in the test script. 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. Byte, Johannes -- Johannes Thumshirn SUSE Labs Filesystems jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850