From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-bn1bon0147.outbound.protection.outlook.com ([157.56.111.147]:50364 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753103AbbLEJ5V convert rfc822-to-8bit (ORCPT ); Sat, 5 Dec 2015 04:57:21 -0500 From: "Wang, Zhiye" To: "linux-btrfs@vger.kernel.org" Subject: freeze_bdev and scrub/re-balance Date: Sat, 5 Dec 2015 09:57:18 +0000 Message-ID: References: In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org List-ID: Hi all, If I understand it correctly, defragment operation is done in user space tools, while scrub/re-balance is done in kernel thread. So, if my kernel module calls freeze_bdev when scrub/re-balance is in progress, will I still be able to get a consistent file system state? Thanks Mike