From: David Miller Subject: Re: [patch 6/6] ide: improve handling of Power Management requests Date: Tue, 23 Jun 2009 16:24:02 -0700 (PDT) Message-ID: <20090623.162402.125952364.davem@davemloft.net> References: <200906232335.57161.bzolnier@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:38628 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757540AbZFWXX6 (ORCPT ); Tue, 23 Jun 2009 19:23:58 -0400 In-Reply-To: <200906232335.57161.bzolnier@gmail.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: bzolnier@gmail.com Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org From: Bartlomiej Zolnierkiewicz Date: Tue, 23 Jun 2009 23:35:56 +0200 > From: Bartlomiej Zolnierkiewicz > Subject: [PATCH] ide: improve handling of Power Management requests > > Make hwif->rq point to PM request during PM sequence and do not allow > any other types of requests to slip in (the old comment was never correct > as there should be no such requests generated during PM sequence). > > Signed-off-by: Bartlomiej Zolnierkiewicz > --- > This was tested in the past (with an additional testing from Borislav) > however there were block layer changes in the meantime so you may want > to give it some more testing time just to be sure. In looking at this change, it occurs to me that this queue blocking facility could also be used to solve the user SET_XFER race. Couldn't it?