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::requeue_list
nvme_ns_head::requeue_list is protected by nvme_ns_head::requeue_lock. Annotate requeue_list with __guarded_by(&requeue_lock) so that Clang's context analysis can validate accesses to the list. 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
499d05d5d1
commit
aa5d8dda3a
|
|
@ -561,7 +561,8 @@ struct nvme_ns_head {
|
|||
u16 nr_plids;
|
||||
u16 *plids;
|
||||
#ifdef CONFIG_NVME_MULTIPATH
|
||||
struct bio_list requeue_list;
|
||||
struct bio_list requeue_list
|
||||
__guarded_by(&requeue_lock);
|
||||
spinlock_t requeue_lock;
|
||||
struct work_struct requeue_work;
|
||||
struct work_struct partition_scan_work;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user