linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* command failing at iSCSI disconnect
@ 2007-09-14 21:43 Dave Jiang
  2007-09-15 17:56 ` FUJITA Tomonori
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Jiang @ 2007-09-14 21:43 UTC (permalink / raw)
  To: linux-scsi

I'm using the latest linus git tree. This is in fileio mode with
IOMode=wb. It seems that if I do I/O and then immediately disconnect
then the cache sync commands fail. Is this expected behavior or should
the connection wait till all existing commands has been flushed before
logout? Thanks!

root@192.168.1.171:~/iscsi2# iscsiadm -m node -T
iqn.2007.com.mvista:disk1 -p 192.168.1.239:3260 --logout
Logout session [sd 1:0:0:0: [sdb] Synchronizing SCSI cache
sid: 1, target: iqn.2007.com.mvista:disk1, portal: 192.168.1.239,3260]
iscsi: cmd 0x35 is not queued (6)
iscsi: cmd 0x35 is not queued (6)
iscsi: cmd 0x35 is not queued (6)
sd 1:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00

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

* Re: command failing at iSCSI disconnect
  2007-09-14 21:43 command failing at iSCSI disconnect Dave Jiang
@ 2007-09-15 17:56 ` FUJITA Tomonori
  2007-09-17 19:01   ` Mike Christie
  0 siblings, 1 reply; 3+ messages in thread
From: FUJITA Tomonori @ 2007-09-15 17:56 UTC (permalink / raw)
  To: djiang; +Cc: linux-scsi, fujita.tomonori

On Fri, 14 Sep 2007 14:43:43 -0700
Dave Jiang <djiang@mvista.com> wrote:

> I'm using the latest linus git tree. This is in fileio mode with
> IOMode=wb. It seems that if I do I/O and then immediately disconnect
> then the cache sync commands fail. Is this expected behavior or should
> the connection wait till all existing commands has been flushed before
> logout? Thanks!
> 
> root@192.168.1.171:~/iscsi2# iscsiadm -m node -T
> iqn.2007.com.mvista:disk1 -p 192.168.1.239:3260 --logout
> Logout session [sd 1:0:0:0: [sdb] Synchronizing SCSI cache
> sid: 1, target: iqn.2007.com.mvista:disk1, portal: 192.168.1.239,3260]
> iscsi: cmd 0x35 is not queued (6)
> iscsi: cmd 0x35 is not queued (6)
> iscsi: cmd 0x35 is not queued (6)
> sd 1:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00

I think that the fix is in Mike's iscsi git tree.

It would be better to ask at open-iscsi mailing list.

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

* Re: command failing at iSCSI disconnect
  2007-09-15 17:56 ` FUJITA Tomonori
@ 2007-09-17 19:01   ` Mike Christie
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Christie @ 2007-09-17 19:01 UTC (permalink / raw)
  To: FUJITA Tomonori; +Cc: djiang, linux-scsi, fujita.tomonori

FUJITA Tomonori wrote:
> On Fri, 14 Sep 2007 14:43:43 -0700
> Dave Jiang <djiang@mvista.com> wrote:
> 
>> I'm using the latest linus git tree. This is in fileio mode with
>> IOMode=wb. It seems that if I do I/O and then immediately disconnect
>> then the cache sync commands fail. Is this expected behavior or should
>> the connection wait till all existing commands has been flushed before
>> logout? Thanks!
>>
>> root@192.168.1.171:~/iscsi2# iscsiadm -m node -T
>> iqn.2007.com.mvista:disk1 -p 192.168.1.239:3260 --logout
>> Logout session [sd 1:0:0:0: [sdb] Synchronizing SCSI cache
>> sid: 1, target: iqn.2007.com.mvista:disk1, portal: 192.168.1.239,3260]
>> iscsi: cmd 0x35 is not queued (6)
>> iscsi: cmd 0x35 is not queued (6)
>> iscsi: cmd 0x35 is not queued (6)
>> sd 1:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
> 
> I think that the fix is in Mike's iscsi git tree.
> 

Yeah, we used to remove the devices from userspace as a workaround, but 
in 2.6.21 doing

echo 1 > /sys/block/sdc/device/delete

changed behavior from where it used to not return until the delete was 
done to where it returns right away.

In my iscsi git tree I finally fixed up the iscsi shutdown code so we do 
not encounter this problem. We did not notice the problem until, 
recently and the fix is larger than what people probably want for stable 
kernels the  so it should hopefully make the next 2.6 kernel.

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

end of thread, other threads:[~2007-09-17 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-14 21:43 command failing at iSCSI disconnect Dave Jiang
2007-09-15 17:56 ` FUJITA Tomonori
2007-09-17 19:01   ` Mike Christie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).