]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82cefc966e1bbba17b1c2f9f85412e4e21247cd2
treeb249fdf60f83a08dde40b28b2ce7e2b020221edc
parent50d94fe8a51cfc36204ebbd9787fe0c9e3be51cb
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