Re: [RFC 7/8] xhci: Notify the xHC when a device is reset.

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

 



Am Dienstag, 8. Dezember 2009 02:12:20 schrieb Sarah Sharp:
> +       xhci_dbg(xhci, "Resetting device with slot ID %u\n", slot_id);
> +       /* Allocate the command structure that holds the struct completion.
> +        * Assume we're in process context, since the normal device reset
> +        * process has to wait for the device anyway.
> +        */
> +       reset_device_cmd = xhci_alloc_command(xhci, false, true, GFP_KERNEL);

That's wrong. Storage devices are reset as part of error handling.
Therefore any memory allocations in the reset path must be GFP_NOIO.

	Regards
		Oliver
--
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