From: Andrew Morton <akpm@osdl.org>
To: Peter Osterlund <petero2@telia.com>
Cc: lists@runa.sytes.net, linux-kernel@vger.kernel.org, axboe@suse.de
Subject: Re: segfault when unloading module loop in 2.6.0-test3+ck patches
Date: Sun, 17 Aug 2003 14:36:00 -0700 [thread overview]
Message-ID: <20030817143600.1a2642a5.akpm@osdl.org> (raw)
In-Reply-To: <m24r0g56kj.fsf@p4.localdomain>
Peter Osterlund <petero2@telia.com> wrote:
>
> Andrew Morton <akpm@osdl.org> writes:
>
> > Peter Osterlund <petero2@telia.com> wrote:
> > >
> > > diff -puN drivers/block/loop.c~loop-oops-fix drivers/block/loop.c
> > > --- linux/drivers/block/loop.c~loop-oops-fix 2003-08-17 19:19:22.000000000 +0200
> > > +++ linux-petero/drivers/block/loop.c 2003-08-17 20:33:03.000000000 +0200
> > > @@ -1198,6 +1198,7 @@ int __init loop_init(void)
> > > lo->lo_queue = blk_alloc_queue(GFP_KERNEL);
> > > if (!lo->lo_queue)
> > > goto out_mem4;
> > > + init_timer(&lo->lo_queue->unplug_timer);
> > > disks[i]->queue = lo->lo_queue;
> > > init_MUTEX(&lo->lo_ctl_mutex);
> > > init_MUTEX_LOCKED(&lo->lo_sem);
> >
> > This bit should be done in ll_rw_blk.c somewhere. Are you sure it is
> > necessary for loop?
>
> Without this, if I insmod loop and then immediately rmmod loop,
> del_timer() calls check_timer_failed(), which generates warnings in
> the kernel log.
>
> In normal cases, the timer is initialized in blk_queue_make_request(),
> but that function is not called if you don't use the loop device
> before unloading the module. Maybe there is a better way to get rid of
> this warning.
Yup. I moved it to blk_alloc_queue() and removed the init_timer() from
blk_queue_make_request().
prev parent reply other threads:[~2003-08-17 21:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-17 7:27 Martin Sarsale
2003-08-17 20:51 ` Peter Osterlund
2003-08-17 20:59 ` Andrew Morton
2003-08-17 21:15 ` Peter Osterlund
2003-08-17 21:36 ` Andrew Morton [this message]
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=20030817143600.1a2642a5.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=lists@runa.sytes.net \
--cc=petero2@telia.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®