diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2024-10-07 10:48:04 +0200 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-11-05 16:08:38 -0800 |
commit | 1e79892e76a78f33deecc895086bef92d8147183 (patch) | |
tree | d1d8a5776d62b362b4e7851b75103e27a681e9fc /rust/helpers/task.c | |
parent | 2a8f6153e1c2db06a537a5c9d61102eb591776f1 (diff) | |
download | linux-1e79892e76a78f33deecc895086bef92d8147183.tar.gz linux-1e79892e76a78f33deecc895086bef92d8147183.tar.bz2 linux-1e79892e76a78f33deecc895086bef92d8147183.zip |
md/raid5-ppl: Use atomic64_inc_return() in ppl_new_iounit()
Use atomic64_inc_return(&ref) instead of atomic64_add_return(1, &ref)
to use optimized implementation and ease register pressure around
the primitive for targets that implement optimized variant.
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Cc: Song Liu <song@kernel.org>
Cc: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Link: https://lore.kernel.org/r/20241007084831.48067-1-ubizjak@gmail.com
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions