From patchwork Mon Jan 14 08:48:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 10761757 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 03C2E1823 for ; Mon, 14 Jan 2019 08:48:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EADC428B8D for ; Mon, 14 Jan 2019 08:48:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF27628BA3; Mon, 14 Jan 2019 08:48:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CB8228BA3 for ; Mon, 14 Jan 2019 08:48:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725837AbfANIsR (ORCPT ); Mon, 14 Jan 2019 03:48:17 -0500 Received: from mx2.suse.de ([195.135.220.15]:48724 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726525AbfANIsR (ORCPT ); Mon, 14 Jan 2019 03:48:17 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0F1AAAF1B; Mon, 14 Jan 2019 08:48:16 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 77B7D1E157A; Mon, 14 Jan 2019 09:48:15 +0100 (CET) From: Jan Kara To: Jens Axboe Cc: , Josef Bacik , Tetsuo Handa , Jan Kara Subject: [PATCH 0/2] blkdev: Fix livelock when loop device updates capacity Date: Mon, 14 Jan 2019 09:48:08 +0100 Message-Id: <20190114084811.14455-1-jack@suse.cz> X-Mailer: git-send-email 2.16.4 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, this series fixes a long standing issue with loop device which can change block device size under a mounted filesystem which causes infinite loop inside buffer head code. See patch 2/2 for details about the problem. Note that generally it is dangerous to resize the loop device when filesystem is mounted on top of it. However there are some valid use cases for this (such as growing the loop device and then increasing the filesystem size) so we cannot just restrict the functionality to exclusive owners of the device. Honza