On Sat, 5 Jan 2008, Rafael J. Wysocki wrote:
quoted text > > Another thing to watch out for: Just in case somebody ends up calling
> > destroy_suspended_device(dev) from within dev's own resume method, you
> > should interchange the resume_device() and the list_move_tail()
> > calls in dpm_resume().
>
> However, if we unregister them all at once after releasing pm_sleep_rwsem,
> that shouldn't be necessary, right?
It's still necessary, because destroy_suspended_device() still has to
move the device from one list to another. You don't want it to end up
on the dpm_locked list.
Alan Stern
--
unsubscribe notice 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/
Messages in current thread:
Re: [PATCH] PM: Acquire device locks on suspend , Alan Stern , (Sat Jan 5, 1:39 pm)