From: bugzilla-daemon@bugzilla.kernel.org
To: linux-scsi@vger.kernel.org
Subject: [Bug 8213] Race: a lock is expected before calling BusLogic_WriteOutgoingMailbox, but it is not held in some case and it is held in other cases
Date: Sat, 29 Aug 2009 16:14:03 GMT [thread overview]
Message-ID: <200908291614.n7TGE3Di011302@demeter.kernel.org> (raw)
In-Reply-To: <bug-8213-11613@http.bugzilla.kernel.org/>
http://bugzilla.kernel.org/show_bug.cgi?id=8213
--- Comment #4 from Anonymous Emailer <anonymous@kernel-bugs.osdl.org> 2009-08-29 16:14:02 ---
Reply-To: James.Bottomley@suse.de
On Sat, 2009-08-29 at 09:29 +0000, bugzilla-daemon@bugzilla.kernel.org
wrote:
> i`m curious how this report sits here unnoticed for so long. does that still
> apply?
It predates the time we placed SCSI bugs directly on the mailing list
and buslogic has no maintainer, so no-one noticed
> WRT MAINTAINERS file, there seems no special maintainer for buslogic driver.
> i`d bring that up on linux-scsi ML.
If I look at the original report:
> Block comment before function BusLogic_WriteOutgoingMailbox says "The Host
> Adapter's Lock should already have been acquired by the caller."
>
>
> But in the following call chain, NO lock is acquired:
> BusLogic_WriteOutgoingMailbox <- BusLogic_QueueCommand
> <- scsi_log_send
> <- scsi_dispatch_cmd
> <- scsi_request_fn
This analysis is incorrect. scsi_log_send() doesn't call queuecommand;
all it does is print out the queuecommand value as a function pointer,
so no lock is needed.
> In some others such as:
> BusLogic_WriteOutgoingMailbox <- BusLogic_QueueCommand <- scsi_send_eh_cmnd
> BusLogic_WriteOutgoingMailbox <- BusLogic_QueueCommand <- scsi_dispatch_cmd
> BusLogic_WriteOutgoingMailbox <- BusLogic_QueueCommand <- scsi_log_send <-
> scsi_send_eh_cmnd
>
> a lock IS held.
Right, *every* actual invocation of queuecommand holds the lock, so this
bug report is invalid.
James
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
next prev parent reply other threads:[~2009-08-29 16:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-8213-11613@http.bugzilla.kernel.org/>
2009-08-29 9:29 ` [Bug 8213] Race: a lock is expected before calling BusLogic_WriteOutgoingMailbox, but it is not held in some case and it is held in other cases bugzilla-daemon
2009-08-29 16:13 ` James Bottomley
2009-08-29 15:53 ` bugzilla-daemon
2009-08-29 16:14 ` bugzilla-daemon [this message]
2009-08-29 16:36 ` bugzilla-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=200908291614.n7TGE3Di011302@demeter.kernel.org \
--to=bugzilla-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.