Re: [PATCH 2/2] libiscsi: check for pending TMF during task xmit

2009-08-04 Thread Hannes Reinecke
Mike Christie wrote: On 08/03/2009 04:13 AM, Hannes Reinecke wrote: Mike Christie wrote: Mike Christie wrote: On 07/31/2009 09:53 AM, Hannes Reinecke wrote: Hmm. I must admit I'm slightly at a loss here. I do have this function: Did you try my second patch queue-some-io-during-tmfs2.patch

Re: same volume two different hosts

2009-08-04 Thread Boaz Harrosh
On Fri, Jul 31, 2009 at 7:12 PM, nick nicholasfredd...@gmail.com mailto:nicholasfredd...@gmail.com wrote: Hi All, I would like to knw if i can present same volume to two hosts? I am using Stonefly Voyager as SAN and the host would be Xen. Thanks in Advance Nick

[PATCH] libiscsi: track Target Transfer Tags

2009-08-04 Thread Hannes Reinecke
For correct TMF handling we should keep track of outstanding TTTs; some targets will drop the connections if outstanding TTTs are not honoured. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/libiscsi.c |7 +++ drivers/scsi/libiscsi_tcp.c |2 +-

Lost active R2T transfers during reset

2009-08-04 Thread Hannes Reinecke
Hi Mike, as you might've seen, I finally found the problem for the MSA dropping the connection. It seems that it's follows this section from the RFC: For the LOGICAL UNIT RESET function, the target MUST behave as dictated by the Logical Unit Reset function in [SAM2]. where SAM2 says:

Re: [PATCH] decrease sndtmo

2009-08-04 Thread Erez Zilber
On Sat, Aug 1, 2009 at 6:34 AM, Mike Christiemicha...@cs.wisc.edu wrote: Mike Christie wrote: On 07/31/2009 04:03 AM, Hannes Reinecke wrote: Mike Christie wrote: tcp_sendpages/tcp_sendmsg can wait sndtmo seconds if a connection goes bad. This then delays session recovery, because that code

[RFC 0/2] extended kfifo API V0.2

2009-08-04 Thread Stefani Seibold
This is a the second proposal of an extended and cleaned up generic kernel FIFO implementation. Changes since V0.1: add kfifo_init() kfifo_put() and kfifo_get() restored to the original behavior (but without locking) introduce new kfifo_put_rec() and kfifo_put_rec() for FIFO record

[RFC 1/2] extended kfifo API V0.2

2009-08-04 Thread Stefani Seibold
/* * A generic kernel FIFO implementation. * * Copyright (C) 2009 Stefani Seibold/Munich/Germany stef...@seibold.net * Copyright (C) 2004 Stelian Pop stel...@popies.net * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public

[RFC 2/2] extended kfifo API V0.2

2009-08-04 Thread Stefani Seibold
/* * A generic kernel FIFO implementation. * * Copyright (C) 2009 Stefani Seibold/Munich/Germany stef...@seibold.net * Copyright (C) 2004 Stelian Pop stel...@popies.net * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public

Re: How many S/W iSCSI Initiators on same machine?

2009-08-04 Thread Rainer Bläs
Thanks for your answer! Yes, by using #iscsiadm -m iface -I ethN, N=1...6 we can have 6 iSCSI sessions. But now there is the question HOWTO assign an initiator name for EACH session? For one iSCSI session it can be found in the /etc/iscsi/ initiatorname.iscsi File:

Can discovery be done without overwriting customizations?

2009-08-04 Thread Ty! Boyack
Folks, I really fear this one is a FAQ somewhere, but I can't find the answer to it. My problem is that discovering new targets overwrites any custom settings that have been applied to targets that already exist on a given portal. Here is the sequence of events I'd like to do: 1) Create an

Re: Lost active R2T transfers during reset

2009-08-04 Thread Mike Christie
Hannes Reinecke wrote: Hi Mike, as you might've seen, I finally found the problem for the MSA dropping the connection. It seems that it's follows this section from the RFC: For the LOGICAL UNIT RESET function, the target MUST behave as dictated by the Logical Unit Reset function in

Re: Can discovery be done without overwriting customizations?

2009-08-04 Thread Mike Christie
Ty! Boyack wrote: Folks, I really fear this one is a FAQ somewhere, but I can't find the answer to it. My problem is that discovering new targets overwrites any custom settings that have been applied to targets that already exist on a given portal. Here is the sequence of events

Re: [PATCH] decrease sndtmo

2009-08-04 Thread Mike Christie
Erez Zilber wrote: I'm running with open-iscsi.git HEAD + the check suspend bit patch + the wake xmit on error patch. If I disconnect the cable on the initiator side (even while not running IO), I see that after sending the signal, the iscsi_q_XX thread reaches 100% cpu. I ran it over

Re: [PATCH] decrease sndtmo

2009-08-04 Thread Erez Zilber
On Tue, Aug 4, 2009 at 8:17 PM, Mike Christiemicha...@cs.wisc.edu wrote: Erez Zilber wrote: I'm running with open-iscsi.git HEAD + the check suspend bit patch + the wake xmit on error patch. If I disconnect the cable on the initiator side (even while not running IO), I see that after

Re: How many S/W iSCSI Initiators on same machine?

2009-08-04 Thread Donald Williams
I don't know if there's a way to set unique initiator names for each NIC. A quick scan of the config file didn't show anything. I *believe* iscsid has the initiator name so it's a global parameter. Why do you want unique names for each initiator? What do you think it will gain you? -don On