From: Amit Patel <patelamitv@yahoo.com>
To: Nick Piggin <piggin@cyberone.com.au>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: as_arq scheduler alloc with 2.6.0-test8-mm1
Date: Tue, 28 Oct 2003 20:34:23 -0800 (PST) [thread overview]
Message-ID: <20031029043423.41171.qmail@web13004.mail.yahoo.com> (raw)
In-Reply-To: <3F9F2928.7030704@cyberone.com.au>
--- Nick Piggin <piggin@cyberone.com.au> wrote:
>
> No, you're on the right track. Actually, in the
> block device
> you will allocate the queue, and the queue will then
> allocate
> the elevator. First see if the queue is being
> properly allocated
> and freed. If it is not, then the problem is in the
> SCSI layer.
>
>
Hi Nick,
During scsi_scan.c:scsi_probe_and_add_lun it allocates
scsi device and request_queue to send the
scsi_request. If during this scan it finds no device
attached to target it will deallocate request__queue.
But since there was no disk found it never called
add_disk and so it never go through blk_register_queue
function to register elevator queue. So during clean
up it just calles blk_cleanup_queue which does _not_
clean up elevator_data.
This is just what I think is happening by looking at
the code. I might be missing something. But in this
case either blk_cleanup_queue should clean elevator
also as part of cleanup instead of it getting cleaned
up through blk_unregister_queue or scsi layer needs
to make some changes during scan. I do not know what
implication it might have if cleanup is done as part
of blk_cleanup_queue on other kind of block devices. I
will try to put this cleanup as part of
blk_cleanup_queue to see if it works.
Thanks
Amit
>
> Amit Patel wrote:
>
> >Hi
> >
> >After doing some printk debugging looks like for
> each
> >block device we allocate elevator structure. But
> >during cleanup the elevator->elevator_data is never
> >freed. In printk I put printk in
> as-iosched.c:as_alloc
> >where I see elevator_data is allocated from as_arq
> >pool and it should have been freed as a part of
> block
> >device cleanup through elevator_release function. I
> >never see it coming to elevatore_release function.
> >
> >I will try to walk through code some more and see
> if I
> >can figure out who was supposed to call
> >elevator_release as part of cleanup. Let me know if
> I
> >am going on wrong track here.
> >
> >Thanks
> >Amit
> >
>
__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
next parent reply other threads:[~2003-10-29 4:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3F9F2928.7030704@cyberone.com.au>
2003-10-29 4:34 ` Amit Patel [this message]
2003-10-29 4:48 ` as_arq scheduler alloc with 2.6.0-test8-mm1 Nick Piggin
2003-10-26 9:54 Mr Amit Patel
2003-10-26 11:41 ` Andrew Morton
2003-10-26 18:03 ` Mr Amit Patel
2003-10-27 17:59 ` Mr Amit Patel
2003-10-27 21:38 ` Andrew Morton
2003-10-27 23:36 ` Nick Piggin
2003-10-29 1:45 ` Amit Patel
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=20031029043423.41171.qmail@web13004.mail.yahoo.com \
--to=patelamitv@yahoo.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=piggin@cyberone.com.au \
/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