|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support.
To: |
Jens Axboe <jens.axboe@xxxxxxxxxx> |
Subject: |
Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support. |
From: |
Joe Jin <joe.jin@xxxxxxxxxx> |
Date: |
Thu, 6 Nov 2008 16:13:33 +0800 |
Cc: |
Xen-devel@xxxxxxxxxxxxxxxxxxx, kurt.hackel@xxxxxxxxxx, shinya.narahara@xxxxxxxxxx, Joe Jin <joe.jin@xxxxxxxxxx>, greg.marsden@xxxxxxxxxx, wen.gang.wang@xxxxxxxxxx, Keir Fraser <keir.fraser@xxxxxxxxxxxxx> |
Delivery-date: |
Thu, 06 Nov 2008 00:26:58 -0800 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<20081105201649.GQ21867@xxxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<20081105133342.GM21867@xxxxxxxxx> <C537558D.28C2F%keir.fraser@xxxxxxxxxxxxx> <20081105201649.GQ21867@xxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
User-agent: |
Mutt/1.4.2.2i |
>
> You don't need a bio_set if you are not queuing beneath someone else.
> But you do need to take care not to call bio_alloc() again without
> having submitted the previous allocation, that is a violation of the bio
> mempool and can lead to deadlocks. I think the batching you do looks
> pointless (again, only looking at the patch), you should submit each bio
> as soon as it is built instead of stashing it in an array for later
> submission. That also gets rid of your bio mempool violation.
>
> > > Does blkback propagate unplug events downwards?
> >
> > Not sure what that means. blkback does its own limited queue plugging to try
> > to develop usefully schedulable batches of I/O. There's no concept of
> > plugging across the blkfront/blkback interface.
>
> So once you leave your queuing loop, you unplug the below device? Or
> just point me at the source...
>
>From source code when got all requests from ring buffer, it have have
unpluged request_queue, when unplug_fn() called, maybe some requests
in request_queue waiting for commit to device.
I have suspected the data lost for device's cache, but when set the
bio rw to WRITE_SYNC, data could almost sync to disk at once.
Thanks,
Joe
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support., (continued)
Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support., Joe Jin
Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support., Keir Fraser
Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support., Keir Fraser
Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support., Keir Fraser
- Message not available
- Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support.,
Joe Jin <=
Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support., Keir Fraser
Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support., Keir Fraser
Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support., Keir Fraser
Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support., Keir Fraser
|
|
|
|
|