From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sitsofe Wheeler Subject: Re: Correct way to remove a cache device? Date: Mon, 31 Mar 2014 13:06:24 +0100 Message-ID: <20140331120623.GA28637@sucs.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from silver.sucs.swan.ac.uk ([137.44.10.1]:36334 "EHLO silver.sucs.swan.ac.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751749AbaCaMGZ (ORCPT ); Mon, 31 Mar 2014 08:06:25 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-bcache-owner@vger.kernel.org List-Id: linux-bcache@vger.kernel.org To: Daniel Smedegaard Buus Cc: linux-bcache@vger.kernel.org On Mon, Mar 31, 2014 at 01:47:21PM +0200, Daniel Smedegaard Buus wrote: > > I'm trying to figure out what the correct way of taking down a bcache > cache device is. > > If I echo 1 to /sys/block/BACKING_DEVICE/bcache/detach, and then to > /sys/fs/bcache/*/unregister, the system will hang. The detach part > goes well, but immediately after unregistering, it will crash. Try sleeping at least two seconds between the operations. -- Sitsofe | http://sucs.org/~sits/