[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.1109170913500.15004-100000@netrider.rowland.org>
Date: Sat, 17 Sep 2011 09:21:23 -0400 (EDT)
From: Alan Stern <stern@...land.harvard.edu>
To: Rocko Requin <rockorequin@...mail.com>
cc: tytso@....edu, <linux-ext4@...r.kernel.org>
Subject: RE: [Bug 25832] kernel crashes when a mounted ext3/4 file system is
physically removed
Please don't include an entire 400-line message in your reply if you're
only going to add a few new lines of text. Use some judicious trimming.
On Sat, 17 Sep 2011, Rocko Requin wrote:
> Here's a log of the latest kernel from git crashing with that patch
> applied (as well as Ted's patch), does it help any?
It does. It shows a new problem that's completely unrelated to the
earlier one.
> The gnome-terminal console cursor
Why were you using gnome-terminal? You should be running the tests at
a console VT, not under X at all. Ctrl-Alt-F2 or the equivalent...
> stopped flashing after the last
> 'detaching wakeup' message for a while (it *seemed* to have locked up
> at this point) but then it came back after what looks like 17 seconds
> or so from the log (apport reported something else crashing at this
> point) and then the oops happened and it crashed for good.
Here's another patch to address the new problem. You can apply it on
top of all the other patches.
Alan Stern
Index: usb-3.1/block/blk-core.c
===================================================================
--- usb-3.1.orig/block/blk-core.c
+++ usb-3.1/block/blk-core.c
@@ -367,8 +367,10 @@ void blk_cleanup_queue(struct request_qu
queue_flag_set_unlocked(QUEUE_FLAG_DEAD, q);
mutex_unlock(&q->sysfs_lock);
- if (q->elevator)
+ if (q->elevator) {
elevator_exit(q->elevator);
+ q->elevator = NULL;
+ }
blk_throtl_exit(q);
Index: usb-3.1/block/elevator.c
===================================================================
--- usb-3.1.orig/block/elevator.c
+++ usb-3.1/block/elevator.c
@@ -812,7 +812,7 @@ void elv_completed_request(struct reques
*/
if (blk_account_rq(rq)) {
q->in_flight[rq_is_sync(rq)]--;
- if ((rq->cmd_flags & REQ_SORTED) &&
+ if ((rq->cmd_flags & REQ_SORTED) && e &&
e->ops->elevator_completed_req_fn)
e->ops->elevator_completed_req_fn(q, rq);
}
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists