All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Osterlund <petero2@telia.com>
To: Andrew Morton <akpm@osdl.org>
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: 17 Aug 2003 23:15:40 +0200	[thread overview]
Message-ID: <m24r0g56kj.fsf@p4.localdomain> (raw)
In-Reply-To: <20030817135935.2790cec6.akpm@osdl.org>

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.

-- 
Peter Osterlund - petero2@telia.com
http://w1.894.telia.com/~u89404340

  reply	other threads:[~2003-08-17 21:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-17  7:27 segfault when unloading module loop in 2.6.0-test3+ck patches Martin Sarsale
2003-08-17 20:51 ` Peter Osterlund
2003-08-17 20:59   ` Andrew Morton
2003-08-17 21:15     ` Peter Osterlund [this message]
2003-08-17 21:36       ` Andrew Morton

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=m24r0g56kj.fsf@p4.localdomain \
    --to=petero2@telia.com \
    --cc=akpm@osdl.org \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lists@runa.sytes.net \
    /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.