From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH v12 7/9] libata: scsi: no poll when ODD is powered off Date: Thu, 10 Jan 2013 11:56:10 -0800 Message-ID: <20130110195610.GL20454@htj.dyndns.org> References: <1357809870-18816-1-git-send-email-aaron.lu@intel.com> <1357809870-18816-8-git-send-email-aaron.lu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1357809870-18816-8-git-send-email-aaron.lu@intel.com> Sender: linux-ide-owner@vger.kernel.org To: Aaron Lu Cc: Jeff Garzik , James Bottomley , "Rafael J. Wysocki" , Alan Stern , Aaron Lu , Jeff Wu , linux-ide@vger.kernel.org, linux-pm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-acpi@vger.kernel.org List-Id: linux-pm@vger.kernel.org On Thu, Jan 10, 2013 at 05:24:28PM +0800, Aaron Lu wrote: > @@ -182,6 +182,13 @@ void zpodd_enable_run_wake(struct ata_device *dev) > { > struct zpodd *zpodd = dev->zpodd; > > + /* > + * Silence the media change poll, as we will be notified when > + * user wants to use the ODD so there is no meaning to poll > + * it when it is powered off > + */ > + dev->sdev->disable_disk_events = true; What's the synchronization rule for this field? Thanks. -- tejun