summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/alignment/alignment_handler.c
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2020-10-17 22:12:36 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2020-10-19 22:58:52 +1100
commit358ab796ce78ba271a6ff82834183ffb2cb68c4c (patch)
treeca31d08756cbeee6fb850bdc0c97a5b6c6c108e5 /tools/testing/selftests/powerpc/alignment/alignment_handler.c
parent0a43ae3e2beb77e3481d812834d33abe270768ab (diff)
downloadlinux-358ab796ce78ba271a6ff82834183ffb2cb68c4c.tar.bz2
powerpc/powernv/dump: Handle multiple writes to ack attribute
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 callers are returned false. Do the final kobject delete checking the return value of sysfs_remove_file_self(). Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20201017164236.264713-1-hegdevasant@linux.vnet.ibm.com
Diffstat (limited to 'tools/testing/selftests/powerpc/alignment/alignment_handler.c')
0 files changed, 0 insertions, 0 deletions