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)
commit74adc1f005e6c28f9019ae49cb5f2796e532f25e
treea28b8f17a81a3800742e53fbc0415ba8cb22d540
parent9634b371b66a270821ed8d4d224ef19e9b842507
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