mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
nvme: add context annotations for nvme_ns_head::current_path
Annotate nvme_ns_head::current_path[] with __rcu_guarded so that Clang's context analysis can validate accesses to the SRCU/RCU protected pointer. Cc: Paul E. McKenney <paulmck@kernel.org> Reviewed-by: Paul E. McKenney <paulmck@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nilay Shroff <nilay@linux.ibm.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
parent
aa5d8dda3a
commit
696d2aeb77
|
|
@ -575,7 +575,7 @@ struct nvme_ns_head {
|
|||
#define NVME_NSHEAD_DISK_LIVE 0
|
||||
#define NVME_NSHEAD_QUEUE_IF_NO_PATH 1
|
||||
#define NVME_NSHEAD_CDEV_LIVE 2
|
||||
struct nvme_ns __rcu *current_path[];
|
||||
struct nvme_ns __rcu_guarded *current_path[];
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user