[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] [PATCH 10/13] dm: add core functions forrequest-based dm
- From: "Nikanth Karthikesan" <KNikanth novell com>
- To: "Kiyoshi Ueda" <k-ueda ct jp nec com>, "<Kiyoshi Ueda" <k-ueda ct jp nec com>, <nikanth gmail com>, <agk redhat com>
- Cc: linux-scsi vger kernel org, knikanth suse de, linux-kernel vger kernel org, dm-devel redhat com, "<Andi Kleen" <andi firstfloor org>, jens axboe oracle com, j-nomura ce jp nec com, "<Milan Broz" <mbroz redhat com>
- Subject: Re: [dm-devel] [PATCH 10/13] dm: add core functions forrequest-based dm
- Date: Mon, 03 Nov 2008 22:33:31 -0700
Hi Kiyoshi
>>> On 10/28/2008 at 09:30 PM, Kiyoshi Ueda <k-ueda ct jp nec com> wrote:
> Hi Nikanth,
>
> On Fri, 24 Oct 2008 13:14:50 +0530, "Nikanth K" wrote:
>> On Fri, Sep 12, 2008 at 8:16 PM, Kiyoshi Ueda wrote:
>> <snip>
>>
>> > +static int dm_make_request(struct request_queue *q, struct bio *bio)
>> > +{
>> > + struct mapped_device *md = (struct mapped_device *)q->queuedata;
>> > +
>> > + if (unlikely(bio_barrier(bio))) {
>> > + bio_endio(bio, -EOPNOTSUPP);
>> > + return 0;
>> > + }
>> > +
>> <snip>
>>
>> Why not add barrier support in the beginning itself, so that targets
>> can be developed with barriers in mind? At least can we make the target
>> to return error, instead of the core?
>
> Currently, there is no barrier support in dm, not only request-based.
> Barrier support is a different feature in the next step, I think.
>
But there are some works in that direction to add support for barriers in dm.
That is why I think building request-based dm with barriers from the
ground up might be a good idea.
> As you noticed in the PATCH#11, current request-based dm has
> the limitation that multiple targets are not supported, so it may
> look barrier support in request-based dm is easy.
> But we may be able to remove the limitation in the future, so
> depending on it is not a good idea.
>
Thanks
Nikanth Karthikesan
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]