RE: [REGRESSION] Minimize per_cpu reservations patch causes NULL ptr deref when some CPUs are offline

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

 



> 1) try to get the info regarding offline CPUs earlier either by calling
> acpi_boot_init() earlier (probably not possible prior to calling find_memory())
> or walk a subset of the ACPI tables to get the number of offline CPUs sooner
> (which sounds ugly).
>
>
> 2) after we call acpi_boot_init() go back and setup the per-cpu datastructures
> for the offline CPUs then.  Seems like this might be cleaner but I have not
> investigated the specifics.

What about:

3) Perform the needed allocations when we try to bring the new cpu online?

It is possible that this will fail ... but if you are so low on memory
that you can't allocate a couple of pages for the new cpu, you are in
a world of hurt already and adding a new cpu is liklely to make things
worse.

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

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux