All of lore.kernel.org
 help / color / mirror / Atom feed
* tcmu-runner info
@ 2018-04-17 14:54 Raghuram Devarakonda
  2018-04-17 16:43 ` Mike Christie
  2018-04-17 21:07 ` Raghuram Devarakonda
  0 siblings, 2 replies; 3+ messages in thread
From: Raghuram Devarakonda @ 2018-04-17 14:54 UTC (permalink / raw)
  To: target-devel

I am working on a plugin based on tcmu-runner and would appreciate
some help. I took the sample file plugin (file_example.c) and modified
it. In my testing, I noticed that reads/writes to the TCMU device hang
and in all these cases, tcmu-runner daemon crashed. I understand that
the crashes are most probably due to the code I added but I am
wondering if there is any way to prevent the hang. For example, is
there a timeout in lio that would eventually fails the reads and
writes?

More over, any help in debugging crashes would also be greatly
appreciated. It would be great if someone can share any pointers in
working with tcmu-runner in general.

Thanks for the help,
Raghu

PS. I hope this is the right mailing list for "tcmu-runner".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tcmu-runner info
  2018-04-17 14:54 tcmu-runner info Raghuram Devarakonda
@ 2018-04-17 16:43 ` Mike Christie
  2018-04-17 21:07 ` Raghuram Devarakonda
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Christie @ 2018-04-17 16:43 UTC (permalink / raw)
  To: target-devel

On 04/17/2018 09:54 AM, Raghuram Devarakonda wrote:
> I am working on a plugin based on tcmu-runner and would appreciate
> some help. I took the sample file plugin (file_example.c) and modified
> it. In my testing, I noticed that reads/writes to the TCMU device hang
> and in all these cases, tcmu-runner daemon crashed. I understand that
> the crashes are most probably due to the code I added but I am
> wondering if there is any way to prevent the hang. For example, is
> there a timeout in lio that would eventually fails the reads and
> writes?

Each tcmu device has a cmd_time_out attribute which is 30 seconds by
default. If we do not get a response within that time out the command
gets failed.

When runner restarts and when using 4.16, it will fail all out standing
commands in case you have cmd_time_out disabled.

> 
> More over, any help in debugging crashes would also be greatly
> appreciated. It would be great if someone can share any pointers in
> working with tcmu-runner in general.
> 
> Thanks for the help,
> Raghu
> 
> PS. I hope this is the right mailing list for "tcmu-runner".
> --
> To unsubscribe from this list: send the line "unsubscribe target-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tcmu-runner info
  2018-04-17 14:54 tcmu-runner info Raghuram Devarakonda
  2018-04-17 16:43 ` Mike Christie
@ 2018-04-17 21:07 ` Raghuram Devarakonda
  1 sibling, 0 replies; 3+ messages in thread
From: Raghuram Devarakonda @ 2018-04-17 21:07 UTC (permalink / raw)
  To: target-devel

On Tue, Apr 17, 2018 at 12:43 PM, Mike Christie <mchristi@redhat.com> wrote:
> On 04/17/2018 09:54 AM, Raghuram Devarakonda wrote:
>> I am working on a plugin based on tcmu-runner and would appreciate
>> some help. I took the sample file plugin (file_example.c) and modified
>> it. In my testing, I noticed that reads/writes to the TCMU device hang
>> and in all these cases, tcmu-runner daemon crashed. I understand that
>> the crashes are most probably due to the code I added but I am
>> wondering if there is any way to prevent the hang. For example, is
>> there a timeout in lio that would eventually fails the reads and
>> writes?
>
> Each tcmu device has a cmd_time_out attribute which is 30 seconds by
> default. If we do not get a response within that time out the command
> gets failed.
>
> When runner restarts and when using 4.16, it will fail all out standing
> commands in case you have cmd_time_out disabled.

Thanks for the info. As for 4.16, you are referring to Linux kernel
version. Right? What happens pre-4.16?

Thanks,
Raghu

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-17 21:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-17 14:54 tcmu-runner info Raghuram Devarakonda
2018-04-17 16:43 ` Mike Christie
2018-04-17 21:07 ` Raghuram Devarakonda

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.