Re: [PATCH v6 07/12] Add async PF initialization to PV guest.

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

 



 On 10/08/2010 09:54 AM, Gleb Natapov wrote:
>  >+
>  >+static void kvm_guest_cpu_notify(void *dummy)
>  >+{
>  >+	if (!dummy)
>  >+		kvm_guest_cpu_init();
>  >+	else
>  >+		kvm_pv_disable_apf(NULL);
>  >+}
>
>  Why are you making decisions based on a dummy input?
>
>  The whole thing looks strange.  Use two functions?
>
What is so strange? Type of notification is passed as a parameter.
The code that does this is just under the function. I can rename
dummy to something else. Or make it two functions.

Two separate functions is simplest.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]