From: Mike Christie <michaelc@cs.wisc.edu>
To: bugme-daemon@bugzilla.kernel.org
Cc: linux-scsi@vger.kernel.org
Subject: Re: [Bug 12119] New: iscsi repeatedly times out
Date: Sun, 30 Nov 2008 22:11:01 -0600 [thread overview]
Message-ID: <493363D5.2090400@cs.wisc.edu> (raw)
In-Reply-To: <4933402C.7000704@cs.wisc.edu>
[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]
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.
[-- Attachment #2: fix-ping-task-setting.patch --]
[-- Type: text/plain, Size: 982 bytes --]
--- 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,
next prev parent reply other threads:[~2008-12-01 4:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-29 11:10 [Bug 12119] New: iscsi repeatedly times out bugme-daemon
2008-11-29 17:40 ` [Bug 12119] " bugme-daemon
2008-12-01 1:38 ` [Bug 12119] New: " Mike Christie
2008-12-01 4:11 ` Mike Christie [this message]
2008-12-01 1:39 ` [Bug 12119] " bugme-daemon
2008-12-01 4:11 ` bugme-daemon
2008-12-01 13:39 ` bugme-daemon
2008-12-01 16:19 ` Mike Christie
2008-12-01 16:20 ` bugme-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=493363D5.2090400@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.