From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Christie Subject: Re: [Bug 12119] New: iscsi repeatedly times out Date: Sun, 30 Nov 2008 22:11:01 -0600 Message-ID: <493363D5.2090400@cs.wisc.edu> References: <4933402C.7000704@cs.wisc.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010401000304020208020303" Return-path: Received: from sabe.cs.wisc.edu ([128.105.6.20]:33031 "EHLO sabe.cs.wisc.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751450AbYLAELQ (ORCPT ); Sun, 30 Nov 2008 23:11:16 -0500 In-Reply-To: <4933402C.7000704@cs.wisc.edu> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: bugme-daemon@bugzilla.kernel.org Cc: linux-scsi@vger.kernel.org This is a multi-part message in MIME format. --------------010401000304020208020303 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mike Christie wrote: > bugme-daemon@bugzilla.kernel.org wrote: >> Hardware Environment:diskless i386, swap on iscsi device >> Software Environment:open-iscsi v 6.2 > > What is the rest of this version string? With fedora run > > rpm -q iscsi-initiator-utils Ignore that request. Try the attached patch made over 2.6.27 which was the base for the kernel I thought you were using. This should also work with 2.6.28-rc*. Oh yeah for 2.6.27 are you using a fedora kernel? If you are building your own kernel and you are using F8 then make sure you compile the kernel with CONFIG_SYSFS_DEPRECATED=y CONFIG_SYSFS_DEPRECATED_V2=y because a lot of tools in F8 may not work right without it. The older iscsi tools in there will not and you will run into lots of other problems, because there were some sysfs changes which affected iscsi and we were not ready for them back then. Newer tools in F9 and F10 and open-iscsi.org will handle any sysfs layout so if you can you might want to grab the iscsi-initiator-utils rpm from the F9 repository. --------------010401000304020208020303 Content-Type: text/plain; name="fix-ping-task-setting.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-ping-task-setting.patch" --- linux-2.6.27-rc5.work/drivers/scsi/libiscsi.c 2008-08-28 17:52:02.000000000 -0500 +++ linux-2.6.27-rc5/drivers/scsi/libiscsi.c 2008-11-30 21:46:55.000000000 -0600 @@ -494,12 +494,6 @@ __iscsi_conn_send_pdu(struct iscsi_conn if (!__kfifo_get(session->cmdpool.queue, (void*)&task, sizeof(void*))) return NULL; - - if ((hdr->opcode == (ISCSI_OP_NOOP_OUT | ISCSI_OP_IMMEDIATE)) && - hdr->ttt == RESERVED_ITT) { - conn->ping_task = task; - conn->last_ping = jiffies; - } } /* * released in complete pdu for task we expect a response for, and @@ -674,6 +668,11 @@ static void iscsi_send_nopout(struct isc task = __iscsi_conn_send_pdu(conn, (struct iscsi_hdr *)&hdr, NULL, 0); if (!task) iscsi_conn_printk(KERN_ERR, conn, "Could not send nopout\n"); + else if (!rhdr) { + /* only track our nops */ + conn->ping_task = task; + conn->last_ping = jiffies; + } } static int iscsi_handle_reject(struct iscsi_conn *conn, struct iscsi_hdr *hdr, --------------010401000304020208020303--