Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757088AbZIKWVH (ORCPT ); Fri, 11 Sep 2009 18:21:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752015AbZIKWVG (ORCPT ); Fri, 11 Sep 2009 18:21:06 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:46252 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751343AbZIKWVE (ORCPT ); Fri, 11 Sep 2009 18:21:04 -0400 From: "Rafael J. Wysocki" To: Pavel Machek Subject: Re: Regression in suspend to ram in 2.6.31-rc kernels Date: Sat, 12 Sep 2009 00:22:10 +0200 User-Agent: KMail/1.12.1 (Linux/2.6.31-rjw; KDE/4.3.1; x86_64; ; ) Cc: Zdenek Kabelac , OGAWA Hirofumi , Christoph Hellwig , Linux Kernel Mailing List , linux-mmc@vger.kernel.org, viro@zeniv.linux.org.uk References: <20090911215117.GA11441@elf.ucw.cz> In-Reply-To: <20090911215117.GA11441@elf.ucw.cz> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200909120022.10808.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1372 Lines: 42 On Friday 11 September 2009, Pavel Machek wrote: > On Fri 2009-09-11 23:45:01, Zdenek Kabelac wrote: > > 2009/9/11 Pavel Machek : > > > > > >> And why suspend of mmc should generate card removal ?? > > > > > > Card is powered down during suspend -> mmc can't guarantee the card is > > > same and unchanged -> it makes some sense to simulate > > > removal/reinsert. > > > > But how is this going to work when I keep the device mounted and > > blockdev is basically destroyed - what if I'm reading file from card > > during suspend ? > > "Don't do it". > > > >> if I suspend and resume my laptop and I keep the card inside - all > > >> those step looks plain wrong. > > > > > > Unfortunately system can't tell. > > > > Well system could check basic card ids if they match after resume - if > > some users wants to crash his card by randomly swapping it during > > suspend/resume - I'd have no problem with that.... > > Well, I do have small problem with that :-). > > Anyway, patch for rechecking IDs would probably be accepted, By whom exactly? > but that's not how it works now. Indeed. Thanks, Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/