From: "Jun'ichi Nomura" <j-nomura@ce.jp.nec.com>
To: dm-devel@redhat.com
Subject: Re: linux-next oops
Date: Wed, 10 Oct 2012 11:58:05 +0900 [thread overview]
Message-ID: <5074E43D.8070407@ce.jp.nec.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1210091955260.28143@file.rdu.redhat.com>
Hello Mikulas,
On 10/10/12 08:57, Mikulas Patocka wrote:
> On Tue, 9 Oct 2012, Bill Pemberton wrote:
>
>> I'm seeing an oops with the patch
>> http://people.redhat.com/agk/patches/linux/editing/dm-store-dm_target_io-in-bio-front_pad.patch
>> in linux-next (commit 24d047b).
>>
>> I'll attach the dmesg output from a crash. I bisected it down to this
>> one patch and verified that reverting it results in a kernel that
>> boots normally. It appears that this will crash any linux-next kernel
>> since 20120918 -- I've not tried them all, but I have tried a few.
>>
>> The machines where this happens are Dell PowerEdge SC1425
I haven't actually tried linux-next but
the following code misses actual cloning after alloc_tio().
(Your patch removed bio_clone_bioset())
Doesn't it cause flush request to be issued unprepared?
1121 static void __issue_target_request(struct clone_info *ci, struct dm_target *ti,
1122 unsigned request_nr, sector_t len)
1123 {
1124 struct dm_target_io *tio = alloc_tio(ci, ti, ci->bio->bi_max_vecs);
1125 struct bio *clone = &tio->clone;
1126
1127 tio->info.target_request_nr = request_nr;
1128
1129 /*
1130 * Discard requests require the bio's inline iovecs be initialized.
1131 * ci->bio->bi_max_vecs is BIO_INLINE_VECS anyway, for both flush
1132 * and discard, so no need for concern about wasted bvec allocations.
1133 */
1134
1135 if (len) {
1136 clone->bi_sector = ci->sector;
1137 clone->bi_size = to_bytes(len);
1138 }
1139
1140 __map_bio(ti, tio);
--
Jun'ichi Nomura, NEC Corporation
next prev parent reply other threads:[~2012-10-10 2:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-09 15:30 linux-next oops Bill Pemberton
2012-10-09 23:57 ` Mikulas Patocka
2012-10-10 2:58 ` Jun'ichi Nomura [this message]
2012-10-10 3:27 ` Bill Pemberton
2012-10-11 1:12 ` Mikulas Patocka
2012-10-11 13:52 ` Bill Pemberton
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=5074E43D.8070407@ce.jp.nec.com \
--to=j-nomura@ce.jp.nec.com \
--cc=dm-devel@redhat.com \
/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.