[lkml]   [2012]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2 04/19] PCI: serialize hotplug operations triggered by PCI hotplug sysfs interfaces
On Fri, Apr 27, 2012 at 11:16:45PM +0800, Jiang Liu wrote:
> + /* Avoid deadlock with pci_hp_deregister() */
> + while (!pci_hotplug_try_enter()) {
> + /* Check whether the slot has been deregistered. */
> + if (list_empty(&slot->slot_list)) {
> + retval = -ENODEV;
> + goto exit_put;
> + }
> + msleep(1);
> + }

Oh my.




My eyes hurt.

And your cpu load just went crazy.

You can now handle all of the nasty emails from sysadmins asking why
their systems look like their load is high for no good reason.

Not to mention all of the other issues here.

My statement about not inventing new lock types has now been proven

The fact that this would even be a chunk of code that was proposed to be
merged makes me weep.

You owe me a bottle of whatever you are drinking if you expect me to
continue to review these patch submissions.

I'm stopping here in the series, please rework this whole thing in a
major way.

greg k-h

 \ /
  Last update: 2012-05-02 09:21    [W:0.037 / U:1.288 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site