From: Boaz Harrosh <bharrosh@panasas.com>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: jens.axboe@oracle.com, linux-scsi@vger.kernel.org,
James.Bottomley@HansenPartnership.com
Subject: Re: [PATCH] Revert "block: WARN in __blk_put_request() for potential bio leak"
Date: Wed, 10 Jun 2009 11:45:14 +0300 [thread overview]
Message-ID: <4A2F729A.1060101@panasas.com> (raw)
In-Reply-To: <20090610172956C.fujita.tomonori@lab.ntt.co.jp>
On 06/10/2009 11:29 AM, FUJITA Tomonori wrote:
> On Wed, 10 Jun 2009 11:15:10 +0300
> Boaz Harrosh <bharrosh@panasas.com> wrote:
>> That is a violation of block API. All block drivers must call
>> blk_end_request().
>
> Where can I find a documentation about it?
>
No documentation
> If not, can you stop claiming a new rule?
>
The fact that ALL block drivers call it for proper service of ALL ULDS,
does it not make it a rule?
> If you want to propose a new rule, you need to fix the existing users
> first.
>
Sorry I missed them. I couldn't even imagine that there will be any.
Will send patches, sorry.
>
>> If they do not, then they can not for example be
>> called from inside Kernel. They relay on special bsg behavior
>> that always uses map_user.
>
> Of course, we send SMP requests only via BSG. SMP is the first reason
> why we invented BSG.
>
Of course what? Show me the big fat comment that says:
only use from BSG!!! other wise broken block driver.
>
<snip>
>
> You don't need SAS hardware to play with blk_rq_map_user() and
> blk_rq_unmap_user(). All you need to do is writing a module that play
> with these functions.
>
>
>> I do believe you that there is no leak, I just want to understand why?
>> And any way, all "BSG SMP" drivers must be fixed to call blk_end_request().
>> They can not be dependent on the specific ULD that calls them.
Boaz
next prev parent reply other threads:[~2009-06-10 8:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 10:44 [PATCH] Revert "block: WARN in __blk_put_request() for potential bio leak" FUJITA Tomonori
2009-06-09 11:53 ` Boaz Harrosh
2009-06-09 13:10 ` FUJITA Tomonori
2009-06-09 13:18 ` Jens Axboe
2009-06-09 13:32 ` Boaz Harrosh
2009-06-09 23:00 ` FUJITA Tomonori
2009-06-10 8:15 ` Boaz Harrosh
2009-06-10 8:29 ` FUJITA Tomonori
2009-06-10 8:34 ` Boaz Harrosh
2009-06-11 10:10 ` FUJITA Tomonori
2009-06-10 8:45 ` Boaz Harrosh [this message]
2009-06-10 8:52 ` FUJITA Tomonori
2009-06-10 9:21 ` Boaz Harrosh
2009-06-10 9:36 ` FUJITA Tomonori
2009-06-10 9:48 ` Boaz Harrosh
2009-06-10 10:01 ` FUJITA Tomonori
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=4A2F729A.1060101@panasas.com \
--to=bharrosh@panasas.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=jens.axboe@oracle.com \
--cc=linux-scsi@vger.kernel.org \
/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