Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4265770imc; Mon, 25 Feb 2019 01:38:54 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib9is95jAo+K+OIcfD2jEu5W9aIe3ifHeCriyznN9FTo8Fqjnf33djER6EUHRWwcBOcj3c8 X-Received: by 2002:a17:902:2963:: with SMTP id g90mr16151299plb.182.1551087534351; Mon, 25 Feb 2019 01:38:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551087534; cv=none; d=google.com; s=arc-20160816; b=BdC8wfAw6yuYk9myiqjFLzgMsFC1M0imVrBCOepapjG7PPbmfH2R2wMcpOS9RMm4yH QjNbQ7ZSBQsD+zO855EqhsNzlujMeTRBgIxJvPLnFeHefsr8gACxU04fp7ZOtlwinhMh GUatYrYLrck4a4sicw/1/g5eTVUl0NBxG8fNTfxhj8Int2Awnq4vVXLRJP0gbbGgV6au fbe3ivfm59V+USEQb2q9W8EqM0x0lyDZP9Ts+p8wKHshsHYvlcesyM2T50DwrUaEUHSq QPf+IX5dVwPEDuv1iq6FBMhDxvTOzYwtnYkNJQcY+J3MZbWQO4hKi6avKacT85fuBYXh S9aQ== 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=rEPxuz9k3Wy/pVD6/luUzRNvrek4Ct5Fvu1l3+DWHbo=; b=Pbm3OBxbLtqSb/BFXQljKZxbNTSIyFynZSdmvBjHXNtHIyav/gcPys6+sqEC+px11G lEefuahJwOBTeWU1ZgMliuJQ4N91yx67va0yedEuyduGEEfFcK1SBjxe85w4M8/vSXde 8iEMetfSUbkw5XvnGgBDd/JJZ/xAY1vc6GFNL8wtk1xE0GR8wN6q26PXJrJ9sYLve9YI caMfMAS2KuCHADyZE+EznDnzUpp7g/rvts6skvEWk2uiS2fsj9jBVAjOEkYSY2POU1jd k6hyxGLXEYKBiznQkQ4Dx14azCjuIbJ9UYqOEG8EwzXTE7eQ0LYbaN2H3Nq/SkN8gagR ygNQ== 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 z2si9483445pfl.179.2019.02.25.01.38.39; Mon, 25 Feb 2019 01:38:54 -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 S1726521AbfBYJhk (ORCPT + 99 others); Mon, 25 Feb 2019 04:37:40 -0500 Received: from mx2.suse.de ([195.135.220.15]:51298 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726374AbfBYJhk (ORCPT ); Mon, 25 Feb 2019 04:37:40 -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 48852ADE1; Mon, 25 Feb 2019 09:37:38 +0000 (UTC) Subject: Re: [PATCH] nvmet: disable direct I/O when unavailable To: Max Gurtovoy , Chaitanya Kulkarni , Christoph Hellwig Cc: Linux Kernel Mailinglist , Linux NVMe Mailinglist References: <20190221182234.22345-1-jthumshirn@suse.de> <6c3fa30a-d516-a453-a001-1014202ff9ce@suse.de> <9d8e96de-d68d-8961-21e8-4cb8e79b4a08@mellanox.com> From: Johannes Thumshirn Openpgp: preference=signencrypt Autocrypt: addr=jthumshirn@suse.de; prefer-encrypt=mutual; ke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zAxv8MxyPXZ7ylRnkheA eQDxuoc/YwMA4qyxhzf6K4tD/aT12XJd95gk+YAL6flGkJD8rA3jsEucPmo5eko4Ms2rOEdG 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: <2185e4e5-086a-d0c2-0fee-a7a5c98267bb@suse.de> Date: Mon, 25 Feb 2019 10:37:37 +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: <9d8e96de-d68d-8961-21e8-4cb8e79b4a08@mellanox.com> 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 24/02/2019 11:54, Max Gurtovoy wrote: > > On 2/22/2019 7:55 AM, Johannes Thumshirn wrote: >> 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.. > > Do we really want to support these kind of filesystems for fabrics > backend device ? only for testing ? > > What is the status of iSCSI/SRP targets in this case ? iSCSI/SRP passes in the following: /* * Use O_DSYNC by default instead of O_SYNC to forgo syncing * of pure timestamp updates. */ flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC; Meaning it uses O_DSYNC, so for instance if I do a dd to tmpfs with O_DSYNC: $ dd if=/dev/zero of=/dev/shm/foo oflag=dsync bs=4k count=1 1+0 records in 1+0 records out 4096 bytes (4.1 kB, 4.0 KiB) copied, 0.000175094 s, 23.4 MB/s Same with O_DIRECT: $ dd if=/dev/zero of=/dev/shm/foo oflag=direct bs=4k count=1 dd: failed to open '/dev/shm/foo': Invalid argument -- 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