Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2021002pxb; Fri, 22 Oct 2021 12:09:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJuxWM//LG3Dqa3KStd+eiK/nhR3w0zskPZ3lTzdJNZX40ZryI6PmwqbZyDpKlX9YlkCU1 X-Received: by 2002:a05:6402:42cd:: with SMTP id i13mr2360403edc.396.1634929779188; Fri, 22 Oct 2021 12:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634929779; cv=none; d=google.com; s=arc-20160816; b=zIps7SDNzzj67LgB1Nt0Ipgwv5ig6CP2bNo2qdegNRSj2FEGIMVpOAAm1awKb8e3i/ dAlnLbJ3GNVnlc20Hq69fxmKuprQnif8x9yUxTSxL1P3TrBdF+mIUVmNaaKhZe52EJ/x X1N+YdZHgKyLULHBj+EvP3KkrwQDIJQ6xa4rfaD5I6sQCgJecsaD8MpvCe/D0RVtW7WW I+ZW0/T5J67mx/T9bpN7ZrQu+CZjTgymhNDQiTD4/c72871dZa5/fvngV+u+1zlp8H2x JJ810u4g2I7Ax634p0K+Vn52YQJ4sfvBPfiPL+CN7WSpN4mtv9Tsc3E3S9bQ/u1i05D4 IKiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=czZn4VgqgqNJZ5Ppv/JT4RKi26ol2gC5wRXk/+FQiV8=; b=bHrO3GffjxU+ff+W4RodRAOeuOp8MvVSELF2z3dlnDJFg10CMPCTEAAcy8/v3q3mbP fZxTv9bT9OEvcThNrF2bqXArfDhNUNPK3RauwnDBa6p5L1wwp8Kqd5CTlcJAj+DTSupJ YtryFYCQHIyZfqvkchjR0VljjsTfPjLyIibEteNBfGg21yqmvuIiX+qWzp3Akqg3tHJK x+TN0IpYjMvfY+r3FyQUYXde573R7dzcFYkjZKcyf3Pue44Wz/q7rnvfB5tTPNVknQEP kyPTJxlvNr15/lQGontiGN4UhR/Sz2HVVnkSXETtqEs3hmqWZAd0k0QZTyGN450rO502 FCiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=pggwe4kT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si11732140ejy.159.2021.10.22.12.09.15; Fri, 22 Oct 2021 12:09:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=pggwe4kT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233084AbhJVTJD (ORCPT + 99 others); Fri, 22 Oct 2021 15:09:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234220AbhJVTIz (ORCPT ); Fri, 22 Oct 2021 15:08:55 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B623CC061766; Fri, 22 Oct 2021 12:06:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=czZn4VgqgqNJZ5Ppv/JT4RKi26ol2gC5wRXk/+FQiV8=; b=pggwe4kTbZvPnmJLNjyp+NhKxp sMZBaZ1QWGY9jcKawWjPON02h7ERgshn8veGx2RRHV7Ar3Pg1OUhQLJhpljtLQMmn//nyoQU3CL9E lgf3W0Ep7sW4SA6hN1mmuj2sJj0uuD/8OGS9Dh075xzzyAuwY1G9LgslFCOEafGKQ7MKUAK0iuhMS ylWeDgCopcyFaxMrGpKvKoO1/K5sLWW0E30CXHJUd1+A4ddp9p+pEcxUIYY1mvZiQ+2Pu1bod5uSH vdb39+JYmlvEHvk0g5BDxVATI+0FPZPFSwdrXMag419rZY9v3z0pfDBf86L7KP3kAYMPIaJygsbBh 6jnfoCjQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdzsC-00BoDf-LG; Fri, 22 Oct 2021 19:06:36 +0000 Date: Fri, 22 Oct 2021 12:06:36 -0700 From: Luis Chamberlain To: Ming Lei Cc: Jens Axboe , linux-block@vger.kernel.org, Minchan Kim , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 4/4] zram: replace fsync_bdev with sync_blockdev Message-ID: References: <20211020015548.2374568-1-ming.lei@redhat.com> <20211020015548.2374568-5-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211020015548.2374568-5-ming.lei@redhat.com> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 09:55:48AM +0800, Ming Lei wrote: > When calling fsync_bdev(), zram driver guarantees that the bdev won't be > opened by anyone, then there can't be one active fs/superblock over the > zram bdev, so replace fsync_bdev with sync_blockdev. > > Signed-off-by: Ming Lei Reviewed-by: Luis Chamberlain Luis