From: bugme-daemon@bugzilla.kernel.org
Subject: [Bug 11529] aacraid - WARNING: at lib/scatterlist.c
Date: Wed, 10 Sep 2008 07:13:25 -0700 (PDT)
Message-ID: <20080910141325.7CA7110805B@picon.linux-foundation.org>
References:
Return-path:
Received: from smtp1.linux-foundation.org ([140.211.169.13]:39339 "EHLO
smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK)
by vger.kernel.org with ESMTP id S1751821AbYIJON1 (ORCPT
);
Wed, 10 Sep 2008 10:13:27 -0400
Received: from picon.linux-foundation.org (picon.linux-foundation.org [140.211.169.79])
by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id m8AEDPAD029606
for ; Wed, 10 Sep 2008 07:13:26 -0700
In-Reply-To:
Sender: linux-scsi-owner@vger.kernel.org
List-Id: linux-scsi@vger.kernel.org
To: linux-scsi@vger.kernel.org
http://bugzilla.kernel.org/show_bug.cgi?id=11529
------- Comment #3 from anonymous@kernel-bugs.osdl.org 2008-09-10 07:13 -------
Reply-To: fujita.tomonori@lab.ntt.co.jp
On Wed, 10 Sep 2008 05:44:31 -0700 (PDT)
bugme-daemon@bugzilla.kernel.org wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=11529
>
>
>
>
>
> ------- Comment #2 from winfried@tilanus.com 2008-09-10 05:44 -------
> The patch didn't apply, but adding the lines by hand worked.
Strange, I can cleanly apply the patch to 2.6.26.5 that the mailing
list delivered...
> It solved most of
> the warnings, but I am still left with two warnings at boottime:
Ah, sorry. Can you try this patch?
Thanks,
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c
index aa4e77c..160feab 100644
--- a/drivers/scsi/aacraid/aachba.c
+++ b/drivers/scsi/aacraid/aachba.c
@@ -404,13 +404,16 @@ static void get_container_name_callback(void *context,
struct fib * fibptr)
char d[sizeof(((struct inquiry_data
*)NULL)->inqd_pid)];
int count = sizeof(d);
char *dp = d;
+ unsigned long flags;
do {
*dp++ = (*sp) ? *sp++ : ' ';
} while (--count > 0);
+ local_irq_save(flags);
scsi_sg_copy_to_buffer(scsicmd, &inq, sizeof(inq));
memcpy(inq.inqd_pid, d, sizeof(d));
scsi_sg_copy_from_buffer(scsicmd, &inq, sizeof(inq));
+ local_irq_restore(flags);
}
}
@@ -793,6 +796,7 @@ static void get_container_serial_callback(void *context,
struct fib * fibptr)
get_serial_reply = (struct aac_get_serial_resp *) fib_data(fibptr);
/* Failure is irrelevant, using default value instead */
if (le32_to_cpu(get_serial_reply->status) == CT_OK) {
+ unsigned long flags;
char sp[13];
/* EVPD bit set */
sp[0] = INQD_PDT_DA;
@@ -800,7 +804,9 @@ static void get_container_serial_callback(void *context,
struct fib * fibptr)
sp[2] = 0;
sp[3] = snprintf(sp+4, sizeof(sp)-4, "%08X",
le32_to_cpu(get_serial_reply->uid));
+ local_irq_save(flags);
scsi_sg_copy_from_buffer(scsicmd, sp, sizeof(sp));
+ local_irq_restore(flags);
}
scsicmd->result = DID_OK << 16 | COMMAND_COMPLETE << 8 | SAM_STAT_GOOD;
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.