Re: [PATCH pm 1/2] usb_storage: don't use set_freezable_with_signal()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, November 15, 2011, Greg KH wrote:
> On Mon, Oct 31, 2011 at 05:37:26PM -0700, Tejun Heo wrote:
> > The current implementation of set_freezable_with_signal() is buggy and
> > tricky to get right.  usb-storage is the only user and its use can be
> > avoided trivially.
> > 
> > All usb-storage wants is to be able to sleep with timeout and get
> > woken up if freezing() becomes true.  This can be trivially
> > implemented by doing interruptible wait w/ freezing() included in the
> > wait condition.  There's no reason to use set_freezable_with_signal().
> > 
> > Perform interruptible wait on freezing() instead of using
> > set_freezable_with_signal(), which is scheduled for removal.
> > 
> > Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
> > Cc: Oleg Nesterov <oleg@xxxxxxxxxx>
> > Cc: "Rafael J. Wysocki" <rjw@xxxxxxx>
> > Cc: Seth Forshee <seth.forshee@xxxxxxxxxxxxx>
> > Cc: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> > Cc: Greg Kroah-Hartman <gregkh@xxxxxxx>
> > ---
> > 
> > These two patches are on top of "freezer: fix various bugs and
> > simplify implementation, take#2" patchset[1] and are also available in
> > the following git branch.
> > 
> >  git://git.kernel.org/pub/scm/linux/kernel/git/tj/misc.git pm-kill-freezable_with_signal
> > 
> > If usb-storage ppl are okay with it, I think routing this through pm
> > would be the easiest.  Oh, and this definitely is for the next merge
> > window.
> 
> I'm fine with it going that way:
> 	Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

It's there in my tree already (through the Tejun's pm-freezer branch).

Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux