From: Boaz Harrosh <bharrosh@panasas.com>
To: Xu Yang <onlyxuyang@qq.com>,
James Bottomley <James.Bottomley@hansenpartnership.com>,
linux-scsi <linux-scsi@vger.kernel.org>,
open-osd mailing-list <osd-dev@open-osd.org>
Subject: [BUGFIX 0/2] BUG Fixes for OSD in mainline (2.6.30)
Date: Tue, 31 Mar 2009 19:58:59 +0300 [thread overview]
Message-ID: <49D24BD3.2030801@panasas.com> (raw)
A very serious and stupid bug was found by users in current osd code,
which caused it not to be usable in it's current form.
It would hard-lock immediately on any asynchronous execution call
on an SMP Kernel. Just to show that it was only run on uni-machines
until today.
Since found I've setup a test rig with SMP machines banging on each
other with multi threaded/devices/mounts and they are still up.
(Same setup I used to run with UMLs before)
Thanks to Xu Yang <onlyxuyang@qq.com> for reporting this and his devotion
to finding a fix.
These are the patches
[PATCH 1/2] libosd: BUGFIX: blk_put_request can't be called from within request_end_io
A fix for a very serious and stupid bug in osd_initiator. It used to
call blk_put_request() regardless of if it was from the end_io callback
or if called after a sync execution. It should call the unlocked version
__blk_put_request() instead.
Also fixed is the remove of _abort_unexecuted_bios hack, and use of
blk_end_request(,-ERROR,) to deallocate half baked requests. I've
audited the code and it should be safe.
Reported and
Tested-by: Xu Yang <onlyxuyang@qq.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
[PATCH 2/2] osd_uld: Remove creation of osd_scsi class symlink
Remove the creation of the symlink from the device to
it's class. On modern systems this is already created by
a udev rule and would WARN on load. On old systems it is
not needed, none of the current osd user-mode tools use
this link.
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Please apply for inclusion in the next round of scsi fixes for
2.6.30
Thank you
Boaz
next reply other threads:[~2009-03-31 17:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-31 16:58 Boaz Harrosh [this message]
2009-03-31 17:05 ` [PATCH 1/2] libosd: BUG: blk_put_request called from within request_end_io Boaz Harrosh
2009-03-31 17:06 ` [PATCH 2/2] osd_uld: Remove creation of osd_scsi class symlink Boaz Harrosh
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=49D24BD3.2030801@panasas.com \
--to=bharrosh@panasas.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=linux-scsi@vger.kernel.org \
--cc=onlyxuyang@qq.com \
--cc=osd-dev@open-osd.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.