OSDN Git Service

nvme: change locking for the per-subsystem controller list
authorChristoph Hellwig <hch@lst.de>
Wed, 8 May 2019 07:48:27 +0000 (09:48 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 14 May 2019 15:19:50 +0000 (17:19 +0200)
commit32fd90c407680935f84fb3ffc60fb3e020257d38
tree5156b2b213d58d07902d227a39b997ace8d0b4c2
parent521cfb8e5a5dd6f2f528d675688f07b962fe4545
nvme: change locking for the per-subsystem controller list

Life becomes a lot simpler if we just use the global
nvme_subsystems_lock to protect this list.  Given that it is only
accessed during controller probing and removal that isn't a scalability
problem either.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
drivers/nvme/host/core.c