]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: lift the file open code from nvme_ctrl_get_by_path
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Thu, 17 Sep 2020 01:11:02 +0000 (18:11 -0700)
committerChristoph Hellwig <hch@lst.de>
Sun, 27 Sep 2020 07:14:18 +0000 (09:14 +0200)
commit0a0e66da82fc376a63d3d8ea360c9de3f7a90f4e
tree42e856da90fda2d7b0b02c6b6c2f0b7bf7c2e9de
parentf79294816b4a7a72b24cefd4a1dc9aaf8c09b2f8
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>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/target/passthru.c