From: Mike Christie <mchristi@redhat.com>
To: target-devel@vger.kernel.org
Subject: Re: [PATCHv4 1/3] target/configfs: add module wide action support
Date: Thu, 03 May 2018 15:31:59 +0000 [thread overview]
Message-ID: <5AEB2B6F.3080206@redhat.com> (raw)
In-Reply-To: <1524123964-21347-2-git-send-email-xiubli@redhat.com>
On 05/02/2018 08:03 PM, Xiubo Li wrote:
> On 2018/5/3 2:27, Mike Christie wrote:
>> On 04/19/2018 02:46 AM, xiubli@redhat.com wrote:
>>> From: Xiubo Li <xiubli@redhat.com>
>>>
>>> For some case we need some module wide configfs to contol some
>>> attributes of the whole transport module.
>> When I suggested to move it module wide I just meant to add another mod
>> param like the global max data area param. I like the approach below
>> though, because rtslib can work similar to how it does for other
>> objects. However for tcmu we will have a mix of types, so I am not sure
>> how you are going to deal with compat. Maybe add a module level attrs
>> attr and add a max data area there that calls the same mod param code.
>> There would still be a kernel where it is not supported though.
> But from currently after the tcmu-runner is crashed the
> target_core_user.ko will still be kept inserted, something like:
>
> [root@gblock2 ~]# lsmod |grep target
> target_core_pscsi 18799 0
> target_core_file 18217 0
> target_core_iblock 18282 0
> iscsi_target_mod 291661 8
> target_core_user 24557 2
> target_core_mod 340729 18
> target_core_iblock,target_core_pscsi,iscsi_target_mod,target_core_file,target_core_user
>
> uio 19259 1 target_core_user
> crc_t10dif 12912 2 target_core_mod,sd_mod
>
> If make it a mod param, like this issue how could it be work when the
> tcmu-runner is crashed and try to start again?
When you do a module_param_cb it creates a sysfs file in
/sys/module/target_core_user/parameters that you can read/write to like
any other sysfs file.
prev parent reply other threads:[~2018-05-03 15:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-19 7:46 [PATCHv4 1/3] target/configfs: add module wide action support xiubli
2018-05-02 18:27 ` Mike Christie
2018-05-03 0:54 ` Xiubo Li
2018-05-03 1:03 ` Xiubo Li
2018-05-03 15:31 ` Mike Christie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5AEB2B6F.3080206@redhat.com \
--to=mchristi@redhat.com \
--cc=target-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.