commit | b2702aaaa45c2d1028bc8c51b49106041be7aae5 | [log] [tgz] |
---|---|---|
author | Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> | Wed Sep 16 18:11:02 2020 -0700 |
committer | Christoph Hellwig <hch@lst.de> | Sun Sep 27 09:14:18 2020 +0200 |
tree | 42e856da90fda2d7b0b02c6b6c2f0b7bf7c2e9de | |
parent | 163090c14a42778c3ccfbdaf39133129bea68632 [diff] |
nvme: lift the file open code from nvme_ctrl_get_by_path Lift opening the file open/close code from nvme_ctrl_get_by_path into the caller, just keeping a simple nvme_ctrl_from_file() helper. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> [hch: refactored a bit, split the bug fixes into a separate prep patch] Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Logan Gunthorpe <logang@deltatee.com>