From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Reinecke Subject: Re: [PATCH v9 03/10] md: Neither resync nor reshape while the system is frozen Date: Tue, 17 Oct 2017 08:24:46 +0200 Message-ID: References: <20171016232905.5047-1-bart.vanassche@wdc.com> <20171016232905.5047-4-bart.vanassche@wdc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20171016232905.5047-4-bart.vanassche@wdc.com> Content-Language: en-US Sender: linux-block-owner@vger.kernel.org To: Bart Van Assche , Jens Axboe Cc: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, Christoph Hellwig , "Martin K . Petersen" , Oleksandr Natalenko , Ming Lei , linux-raid@vger.kernel.org, Hannes Reinecke , Johannes Thumshirn List-Id: linux-raid.ids On 10/17/2017 01:28 AM, Bart Van Assche wrote: > Some people use the md driver on laptops and use the suspend and > resume functionality. Since it is essential that submitting of > new I/O requests stops before a hibernation image is created, > interrupt the md resync and reshape actions if the system is > being frozen. Note: the resync and reshape will restart after > the system is resumed and a message similar to the following > will appear in the system log: > > md: md0: data-check interrupted. > > Signed-off-by: Bart Van Assche > Reviewed-by: Shaohua Li > Tested-by: Martin Steigerwald > Cc: linux-raid@vger.kernel.org > Cc: Ming Lei > Cc: Christoph Hellwig > Cc: Hannes Reinecke > Cc: Johannes Thumshirn > --- > drivers/md/md.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- > drivers/md/md.h | 8 ++++++++ > 2 files changed, 57 insertions(+), 1 deletion(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)