All of lore.kernel.org
 help / color / mirror / Atom feed
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,
	osd-dev@open-osd.org, dgilbert@interlog.com
Subject: Re: [PATCH resend] bsg: Add support for submitting requests at tail of queue
Date: Tue, 24 Mar 2009 14:53:52 +0200	[thread overview]
Message-ID: <49C8D7E0.9000107@panasas.com> (raw)
In-Reply-To: <20090324210440Z.fujita.tomonori@lab.ntt.co.jp>

FUJITA Tomonori wrote:
> On Tue, 24 Mar 2009 10:41:32 +0200
> Boaz Harrosh <bharrosh@panasas.com> wrote:
> 
>> Boaz Harrosh wrote:
>>> Hi Tomo Jens
>>>
>>> Tomo you never ack-by on this patch. I absolutely needs this for the
>>> user-mode API of osd-initiator. Which is needed with up-coming exofs
>>> utilities.
>>>
>>> What do you want to do?
>>>
>>> Thanks 
>>>
>> Hi Jens.
>>
>> I absolutely need this patch for 2.6.30 merge window. It is totally
>> un-dangerous since defaults are left unchanged.
> 
> The question is we really need this feature or not. Though I guess
> that we need to address this starvation issue.
> 

Good, this patch solves exactly that problem. Thanks Tomo
 
> 
>> I need it because the user-mode utilities for osd and exofs that
>> correspond to code in 2.6.30 will need this patch to compile,
>> because they use a flag constant defined in this patch.
> 
> What do the user-mode utilities does for what?
> 

The immediate problem is that the code uses this API and will
not compile without it. This is because the user-mode library
exports the exact API and fixture set as the Kernel one. Submitting
commands in order is one important aspect.

This is a general purpose library for developers to use, with
published API. In the purpose of attracting users to develop for
OSD, so the argument of not yet used does not apply. I don't want
the users to go around inventing work arounds when the solution
is obvious and the blame is clear.

> You always say something like, "we need this for OSD, pNFS or
> something". But I'm not sure you explain the detailed background.
> 

I don't think this argument applies to this particular patch.
The shortcoming of bsg code is clear and should be fixed. And
it has a user. libosd in user-mode.

But if you want details then just calling osd_execute_request_async()
from user-mode in succession, will reveal this problem. Not fixing
it now will hide mines to any developer that wants to use libosd.

> A typical example is, why does the osd library export lots of
> functions that exofs doesn't use with EXPORT_SYMBOL 

This is unrelated to this patch of course, but...
They are all used by the osd_ktest.ko which you objected to
be included in the Kernel, and I removed.

> instead of
> EXPORT_SYMBOL_GPL?

What is that got to do with it?
The libosd.ko is a general purpose library for any kind of user.
It exports the API defined in osd_initiator.h. This API is globally
public, and has until now 3 implementations Linux-kernel, Linux-user-mode,
BSD-kernel. I hope it will have many more implementations on all
major OSs.
I do not designate this API to be private Linux API, hence
EXPORT_SYMBOL_GPL does not apply.

Boaz


  parent reply	other threads:[~2009-03-24 12:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-19  9:13 [PATCH resend] bsg: Add support for submitting requests at tail of queue Boaz Harrosh
2009-03-24  8:41 ` Boaz Harrosh
2009-03-24 11:23   ` Jens Axboe
2009-03-24 12:05   ` FUJITA Tomonori
2009-03-24 12:14     ` Jens Axboe
2009-03-24 12:22       ` FUJITA Tomonori
2009-03-24 12:26         ` Jens Axboe
2009-03-24 12:53     ` Boaz Harrosh [this message]
2009-03-25  4:06       ` 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=49C8D7E0.9000107@panasas.com \
    --to=bharrosh@panasas.com \
    --cc=dgilbert@interlog.com \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=jens.axboe@oracle.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=osd-dev@open-osd.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 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.