nvme_fc: add 'nvme_discovery' sysfs attribute to fc transport device
authorJames Smart <jsmart2021@gmail.com>
Thu, 13 Sep 2018 23:17:38 +0000 (16:17 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 1 Oct 2018 21:16:11 +0000 (14:16 -0700)
commit97faec531460c949d7120672b8c77e2f41f8d6d7
treeb249fdf60f83a08dde40b28b2ce7e2b020221edc
parentea96d6496ff59b2b26dc9e13dc8f57d77731eb37
nvme_fc: add 'nvme_discovery' sysfs attribute to fc transport device

The fc transport device should allow for a rediscovery, as userspace
might have lost the events. Example is udev events not handled during
system startup.

This patch add a sysfs entry 'nvme_discovery' on the fc class to
have it replay all udev discovery events for all local port/remote
port address pairs.

Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c