[stgt] [PATCH] The Referenced Task Tag (RTT) should be used when handling task management request.

Kiefer Chang zapchang at gmail.com
Sun May 22 06:27:57 CEST 2011


Hi Tomonori,

I'll try to test the patch when I back to work.

Right now we suspect the issue is caused by a unfinished command
interfering a new logged in connection.
Suppose a command is during KERNEL state, so tgtd won't abort the
command immediately.
And the initiator try to logout and re-login the target. The accept
function call returns the same fd as previous connection.
After the commands in previous connection return from KERNEL state it
will use the fd do something (which just the same as the new
connection).
And it may cause the new connection go into the TX state.

We test an approach to close the fd in ep_release() rather then
ep_close(). So a new connection won't share the same fd with a
connection that has unfinished commands. Right now it looks good, more
tests need to be done though.

--
Best regards,
Kiefer Chang


2011/5/22 FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>:
> On Sat, 21 May 2011 13:31:37 +0800
> Kiefer Chang <zapchang at gmail.com> wrote:
>
>> The RTT should be used when processing task management request.
>>
>> Signed-off-by: Kiefer Chang <zapchang at gmail.com>
>> ---
>>  usr/iscsi/iscsid.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> Applied, thanks!
>
> Can you test the patch that I've attached in the previous mail? tgtd still
> crashes?
>
>
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list