On 10/23/2017 04:51 PM, Christoph Hellwig wrote: > Use the core chrdev code to set up the link between the character device > and the nvme controller. This allows us to get rid of the global list > of all controllers, and also ensures that we have both a reference to > the controller and the transport module before the open method of the > character device is called. > > Signed-off-by: Christoph Hellwig <[email protected]> > Reviewed-by: Sagi Grimberg <[email protected]> > Reviewed-by: Johannes Thumshirn <[email protected]> > --- > drivers/nvme/host/core.c | 76 > ++++++++++-------------------------------------- > drivers/nvme/host/nvme.h | 3 +- > 2 files changed, 18 insertions(+), 61 deletions(-) > Reviewed-by: Hannes Reinecke <[email protected]>
Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking [email protected] +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)
