]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fwserial: Switch to kfree_rcu() API
authorShang XiaoJing <shangxiaojing@huawei.com>
Tue, 20 Sep 2022 13:51:45 +0000 (21:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2022 10:55:22 +0000 (12:55 +0200)
commit9420b5764599c25e9e955b9c394b82d1aee5356a
treea28b8f17a81a3800742e53fbc0415ba8cb22d540
parent5ce7bdff28d8a69eb1d9c9b7d5dcffa3de138484
staging: fwserial: Switch to kfree_rcu() API

Instead of invoking a synchronize_rcu() to free a pointer after a grace
period, we can directly make use of a new API that does the same but in
a more efficient way.

Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Link: https://lore.kernel.org/r/20220920135145.1387-1-shangxiaojing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fwserial/fwserial.c