Hi, With the following patch, tgt has been working without leaking nexuses for six hours. And it seems like it isn't getting fat anymore. Now I will see if it won't crash in a long run. >> > Hello, >> > >> > >> I uploaded the log and core at >> > >> http://people.valinux.co.jp/~taka/tgtd/ >> > > >> > > Thanks, I got them. >> > > >> > > btw, with the patch, tgtadm still tells that there are lots of nexuses >> > > like as you reported before? >> > >> > Yes, there were lots of nexuses left before it crashed. >> > It seems tgtd had something leaking. >> > >> > >> > Target 1: target1 >> > System information: >> > Driver: iscsi >> > State: ready >> > I_T nexus information: >> > I_T nexus: 4 >> > Initiator: iqn.2010-09.jp.co.valinux:guest02 >> > Connection: 0 >> > IP Address: 172.17.112.102 >> >> Ok, can you try the following patch? It's a fix. It disables tmf so we > > Oops, it's NOT a fix. It could help to find out where the problem is. > > Anyway, please let me know, with this patch, if tgt crashes or not, > you see lots of nexuses, etc. > > btw, please don't try to kill a connection via tgtadm delete op (you > didn't do that so far, right?). Right. I have never used "tgtadm delete op" during this kind of tests. >> can see if this leak is caused by tmf or we migth have bugs related >> with this at other places. >> >> THanks, >> >> diff --git a/usr/iscsi/iscsid.c b/usr/iscsi/iscsid.c >> index 3a79d93..ade96f4 100644 >> --- a/usr/iscsi/iscsid.c >> +++ b/usr/iscsi/iscsid.c >> @@ -1403,6 +1403,8 @@ static int iscsi_tm_execute(struct iscsi_task *task) >> req->flags & ISCSI_FLAG_TM_FUNC_MASK); >> } >> >> + err = ISCSI_TMF_RSP_NOT_SUPPORTED; >> + >> if (err) >> task->result = err; >> else { >> -- >> To unsubscribe from this list: send the line "unsubscribe stgt" in >> the body of a message to majordomo@xxxxxxxxxxxxxxx >> More majordomo info at http://vger.kernel.org/majordomo-info.html # tgtadm --lld iscsi --op show --mode=target Target 1: target1 System information: Driver: iscsi State: ready I_T nexus information: I_T nexus: 156 Initiator: iqn.2010-09.jp.co.valinux:guest02 Connection: 0 IP Address: 172.17.112.102 I_T nexus: 157 Initiator: iqn.2010-09.jp.co.valinux:guest01 Connection: 0 IP Address: 172.17.112.101 LUN information: LUN: 0 Type: controller SCSI ID: IET 00010000 SCSI SN: beaf10 Size: 0 MB Online: Yes Removable media: No Readonly: No Backing store type: null Backing store path: None Backing store flags: LUN: 1 Type: disk SCSI ID: 1.1 SCSI SN: xvdc1 Size: 20012 MB Online: Yes Removable media: No Readonly: No Backing store type: rdwr Backing store path: /dev/xvdc1 Backing store flags: LUN: 2 Type: disk SCSI ID: 1.2 SCSI SN: xvdd1 Size: 20012 MB Online: Yes Removable media: No Readonly: No Backing store type: rdwr Backing store path: /dev/xvdd1 Backing store flags: Account information: ACL information: ALL Target 2: target2 System information: Driver: iscsi State: ready I_T nexus information: I_T nexus: 99 Initiator: iqn.2010-09.jp.co.valinux:guest01 Connection: 0 IP Address: 172.17.112.101 I_T nexus: 132 Initiator: iqn.2010-09.jp.co.valinux:guest02 Connection: 0 IP Address: 172.17.112.102 LUN information: LUN: 0 Type: controller SCSI ID: IET 00020000 SCSI SN: beaf20 Size: 0 MB Online: Yes Removable media: No Readonly: No Backing store type: null Backing store path: None Backing store flags: LUN: 1 Type: disk SCSI ID: 2.1 SCSI SN: xvdc2 Size: 19987 MB Online: Yes Removable media: No Readonly: No Backing store type: rdwr Backing store path: /dev/xvdc2 Backing store flags: LUN: 2 Type: disk SCSI ID: 2.2 SCSI SN: xvdd2 Size: 19987 MB Online: Yes Removable media: No Readonly: No Backing store type: rdwr Backing store path: /dev/xvdd2 Backing store flags: Account information: ACL information: ALL -- To unsubscribe from this list: send the line "unsubscribe stgt" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html