On Mon, 25 Oct 2010 11:00:08 +0900 FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> wrote: > On Thu, 21 Oct 2010 15:41:12 +0900 (JST) > Hirokazu Takahashi <taka@xxxxxxxxxxxxx> wrote: > > > 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?). > 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 -- 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