Skip to content
Commit 772ea326 authored by Chao Leng's avatar Chao Leng Committed by Christoph Hellwig
Browse files

nvme-core: use list_add_tail_rcu instead of list_add_tail for nvme_init_ns_head



The "list" of nvme_ns_head is used as rcu list, now in nvme_init_ns_head
list_add_tail is used to add ns->siblings to the rcu list. It is not safe.
Should use list_add_tail_rcu instead of list_add_tail.

Signed-off-by: default avatarChao Leng <lengchao@huawei.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent d1bcf006
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment