OSDN Git Service

io-wq: use kfree_rcu() to simplify the code
authorYueHaibing <yuehaibing@huawei.com>
Sat, 2 Nov 2019 07:55:01 +0000 (15:55 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 2 Nov 2019 13:59:46 +0000 (07:59 -0600)
commit364b05fd06e87e53dc03396f73afeac48d8e0998
tree68110326f71e94ce9d966e238edf91cbe1c6a092
parent0069fc6b1cf28de3a3890ed7c87a5b8ab79ca528
io-wq: use kfree_rcu() to simplify the code

The callback function of call_rcu() just calls kfree(), so we can use
kfree_rcu() instead of call_rcu() + callback function.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c