From: Takao Indoh <indou.takao@soft.fujitsu.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/4][diskdump] x86-64 support
Date: Tue, 31 Aug 2004 18:10:40 +0900 [thread overview]
Message-ID: <9AC48F3A62CFC4indou.takao@soft.fujitsu.com> (raw)
In-Reply-To: <20040828112324.B8000@infradead.org>
Thanks for comment.
On Sat, 28 Aug 2004 11:23:24 +0100, Christoph Hellwig wrote:
>> +mptscsih_sanity_check(struct scsi_device *sdev)
>> +{
>> + MPT_ADAPTER *ioc;
>> + MPT_SCSI_HOST *hd;
>> +
>> + hd = (MPT_SCSI_HOST *) sdev->host->hostdata;
>> + if (!hd)
>> + return -ENXIO;
>> + ioc = hd->ioc;
>> +
>> + /* message frame freeQ is busy */
>> + if (spin_is_locked(&ioc->FreeQlock))
>> + return -EBUSY;
>
>As in the scsi code spin_is_locked checks are bogus and racy. Only
>a spin_trylock would be safe. hd can't be NULL.
Could you explain to me why spin_is_locked is not safe?
Regards,
Takao Indoh
next prev parent reply other threads:[~2004-08-31 9:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-28 9:43 [PATCH 0/4][diskdump] " Takao Indoh
2004-08-28 9:44 ` [PATCH 1/4][diskdump] " Takao Indoh
2004-08-28 9:45 ` [PATCH 2/4][diskdump] " Takao Indoh
2004-08-28 10:21 ` Christoph Hellwig
2004-08-28 9:47 ` [PATCH 3/4][diskdump] " Takao Indoh
2004-08-28 9:48 ` [PATCH 4/4][diskdump] " Takao Indoh
2004-08-28 10:23 ` Christoph Hellwig
2004-08-31 9:10 ` Takao Indoh [this message]
2004-09-04 11:11 ` Christoph Hellwig
2004-09-04 22:31 ` Lee Revell
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=9AC48F3A62CFC4indou.takao@soft.fujitsu.com \
--to=indou.takao@soft.fujitsu.com \
--cc=hch@infradead.org \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome