Fabric Module Deregistering
by Oliver Smith-Denny
Hi,
I am writing a fabric module for use with targetcli-fb and rtslib-fb. Currently, all functionality is there, but I have one issue that I wanted to discuss with the community to see if I need to change my code or if it is a targetcli/rtslib bug. Here is a link to the PR showing my changes to rtslib-fb to include the fabric module: https://github.com/open-iscsi/rtslib-fb/pull/129. The issue I have is that once I create a target within targetcli, I cannot deregister my kernel module, even after I delete everything in targetcli. The modules ref count will increase with the number of objects I make in targetcli, obviously, and it will decrease when I delete them. But when I clearconfig, I still am left with one reference to my kernel module. Furthermore, if I do not create any targets in targetcli, (so my ref count starts at 0), but just try to create a target with a bad WWN (for example 0), I gain a reference to my kernel module, but it doesn't go away. Even though nothing
was created. After dumping the stack to see where the module_get was coming from, I see that it is coming from configfs_mkdir. So my best reasoning is that /sys/kernel/config/target/my_module gets created, which holds a reference to my module. Is there a canonical way to drop this reference? Should I be calling something differently from within my code? Or is this a bug in either targetcli/rtslib or configfs?
If anyone can help, I would be greatly appreciative.
Thank you,
Oliver
6 years
Change Model Name in ConfigFS
by Oliver Smith-Denny
Hi,
Is there a way within rtslib-fb to change the model name of a LUN? I see in LIO that there are functions within configFS that seem to do so. Currently, when a LUN is seen by an initiator on my development setup, it says LIO-ORG for the model name. I am in the process of adding a module to rtslib-fb, called fnic2 (which is also in the process of being submitted to the Linux kernel), so I want to see if there is further code I should be adding in rtslib-fb to change the model name or if should do that in my fabric module.
If anyone has an idea, I would greatly appreciate it.
Thank you,
Oliver Smith-Denny
6 years
Qlogic qla8142 targetcli
by jason
Hi,
I've been trying to get qle8142 CNAs working in FCoE target mode,
without success.
I'm running the latest level of the firmware from qlogic, but it looks
like the combination of
qla2xxx module + firmware version 7.03.00 + targetcli under Fedora 26
isn't happy.
I've lost the page now but I found an patch note about targetcli
requiring firmware version >8.
Is there a version/combination that I can get these 8142 adapters
working as targets?
If the 8142s just wont work under any version/configuration, any
suggestions on
whats the cheapest FCoE card to use in an old IBM X series server to
present 10Gb FCoE?
Sorry if this is a trivial question, but I'm an old guy that works on
AIX rather than linux,
I'm just trying to get a test lab running to PoC 10Gb FCoE for AIX
storage connectivity
and I'm finally resorting to asking this list after many many hours of
trial and error.
I'll dump all the logs and details if its still the right tree I'm
barking up, but if I've just been
trying to push x up hill and wasting my time, I'd appreciate anyone's
time in responding.
Jason
6 years