Re: [PATCH] powerpc/opal_elog: Handle multiple writes to ack attribute

2020-10-16 Thread Michael Ellerman
On Wed, 14 Oct 2020 12:18:13 +0530, Aneesh Kumar K.V wrote: > Even though we use self removing sysfs helper, we still need > to make sure we do the final kobject delete conditionally. > sysfs_remove_file_self() will handle parallel calls to remove > the sysfs attribute file and returns true only in

Re: [PATCH] powerpc/opal_elog: Handle multiple writes to ack attribute

2020-10-14 Thread Mahesh J Salgaonkar
On 2020-10-14 12:18:13 Wed, Aneesh Kumar K.V wrote: > Even though we use self removing sysfs helper, we still need > to make sure we do the final kobject delete conditionally. > sysfs_remove_file_self() will handle parallel calls to remove > the sysfs attribute file and returns true only in the cal

[PATCH] powerpc/opal_elog: Handle multiple writes to ack attribute

2020-10-13 Thread Aneesh Kumar K.V
Even though we use self removing sysfs helper, we still need to make sure we do the final kobject delete conditionally. sysfs_remove_file_self() will handle parallel calls to remove the sysfs attribute file and returns true only in the caller that removed the attribute file. The other parallel call