Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4597373imc; Mon, 25 Feb 2019 07:39:21 -0800 (PST) X-Google-Smtp-Source: AHgI3IZaXUbhXe7SlYysgts3FWL9AzIOJxo32hqQH1eBc7NdW/JQ8Wt33f6SeOVYk5eDzH70E6IZ X-Received: by 2002:a62:76c9:: with SMTP id r192mr21328129pfc.251.1551109160984; Mon, 25 Feb 2019 07:39:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551109160; cv=none; d=google.com; s=arc-20160816; b=u5ZHv6a+WkKeWLfsICHIDzs/KnD3FzM5yj7rOztOg1YZn6PKbX/9eSoRT2m2tCcxea 98uJX13Vn/87NbT3da1H+OJ5BWKB+RO0nVskFQM857aKk5nP9wHT2hM1SxSuVuLjA4MI hu8cuQWyJPIvAAW4wNlvdah5hLUqK/pvXP3tJw4TFfWe0SXCe+P583XQDQiKjBvvRPIE 5/hM4WKu0S7bvSD8myLpuLyKtusnF0ErKBne0ZoxIrmCTEGAQT+2+wY8pKnvKjmEFy12 1l1tqlx1cVQUq+qmfBm2bjPCdUxyfoRzmVf4f4JOX3YA4L9ZsBFSpTAKv1dTPAoYujMq 3oqw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=jE85KXtC5TuCGIPjJQxBTLGQUzQzMj/3zC1l56X805U=; b=FCwXRgdxf5z8vVKhDXeUbYMeIlogOtCKgACmv3hEz/eBT0nF6CXDyEIiMtp5RNlKrk QoCMwJzT2cvbQjqInervo7bYcYugQNuQwttO6YjOFp0bXDotKCdJJ9y9EKXyj6MBKNDS 3WWLkJ8ghcOeEwelG8kZY5i+VGl201VAh0K2tD2/JyTKx1rm2qyHCQYsnIIUWHLV4Wsa /15hLE2DKZWyb9JnI5ceW47/H/bbfMN3oFC78PUilVpRDbGI/1Dbt1m+gT16e2oFq11B WU0uk38x6sv+zOFGp/KXAB5jCiezIv8UusRf5s0sLco40YSWwRoK4eyqbLd+cuxXNNvg mBYg== 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 j9si8443606pgb.49.2019.02.25.07.39.05; Mon, 25 Feb 2019 07:39:20 -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 S1727674AbfBYPi3 (ORCPT + 99 others); Mon, 25 Feb 2019 10:38:29 -0500 Received: from mx2.suse.de ([195.135.220.15]:48658 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727505AbfBYPi3 (ORCPT ); Mon, 25 Feb 2019 10:38:29 -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 49567AFBC; Mon, 25 Feb 2019 15:38:28 +0000 (UTC) Date: Mon, 25 Feb 2019 16:38:27 +0100 From: Johannes Thumshirn To: Bart Van Assche Cc: Max Gurtovoy , Chaitanya Kulkarni , Christoph Hellwig , Linux Kernel Mailinglist , Linux NVMe Mailinglist Subject: Re: [PATCH] nvmet: disable direct I/O when unavailable Message-ID: <20190225153827.GA17442@linux-x5ow.site> References: <20190221182234.22345-1-jthumshirn@suse.de> <6c3fa30a-d516-a453-a001-1014202ff9ce@suse.de> <9d8e96de-d68d-8961-21e8-4cb8e79b4a08@mellanox.com> <2185e4e5-086a-d0c2-0fee-a7a5c98267bb@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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 06:49:04AM -0800, Bart Van Assche wrote: > On 2/25/19 1:37 AM, Johannes Thumshirn wrote: > > On 24/02/2019 11:54, Max Gurtovoy wrote: > > > 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; > > That code fragment comes from the LIO file backend. There is no requirement > for a SCSI target core file backend to use O_DSYNC. SCST allows users to > choose whether or not O_DSYNC should be used: Yes, LIO file backend is the in-tree equivalent to NVMe's file backend. That's why I copied it here. > > if (virt_dev->wt_flag && !virt_dev->nv_cache) > open_flags |= O_DSYNC; > OK. Do your open_flags include O_DIRECT per default as well? 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