nvmet: protect discovery change log event list iteration
authorSagi Grimberg <sagi@grimberg.me>
Mon, 29 Apr 2019 23:28:19 +0000 (16:28 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 May 2019 13:18:47 +0000 (09:18 -0400)
commit6f53e73b9ec5b3cd097077c5ffcb76df708ce3f8
treefe468819f20d961cbfec7da32f37f5108ed11055
parent893a74b7a76e6e9c5c7199e6aae946f090622fa2
nvmet: protect discovery change log event list iteration

When we iterate on the discovery subsystem controllers
we need to protect against concurrent mutations to it.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Minwoo Im <minwoo.im@samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/discovery.c