Re: [Qemu-devel] [RFC 1/6] block: add request tracking

2011-11-07 Thread Zhi Yong Wu
On Mon, Oct 17, 2011 at 11:47 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: The block layer does not know about pending requests.  This information is necessary for copy-on-read since overlapping requests must be serialized to prevent races that corrupt the image. Add a simple

Re: [Qemu-devel] [RFC 1/6] block: add request tracking

2011-11-07 Thread Stefan Hajnoczi
On Mon, Nov 7, 2011 at 11:00 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Mon, Oct 17, 2011 at 11:47 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: +/** + * Enable tracking of incoming requests + * + * Request tracking can be safely used by multiple users at the same time, + *

Re: [Qemu-devel] [RFC 1/6] block: add request tracking

2011-11-07 Thread Zhi Yong Wu
On Mon, Nov 7, 2011 at 7:41 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Mon, Nov 7, 2011 at 11:00 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Mon, Oct 17, 2011 at 11:47 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: +/** + * Enable tracking of incoming requests + * + *

Re: [Qemu-devel] [RFC 1/6] block: add request tracking

2011-11-03 Thread Stefan Hajnoczi
On Wed, Nov 2, 2011 at 4:30 PM, Kevin Wolf kw...@redhat.com wrote: Am 17.10.2011 17:47, schrieb Stefan Hajnoczi: The block layer does not know about pending requests.  This information is necessary for copy-on-read since overlapping requests must be serialized to prevent races that corrupt the

Re: [Qemu-devel] [RFC 1/6] block: add request tracking

2011-11-02 Thread Kevin Wolf
Am 17.10.2011 17:47, schrieb Stefan Hajnoczi: The block layer does not know about pending requests. This information is necessary for copy-on-read since overlapping requests must be serialized to prevent races that corrupt the image. Add a simple mechanism to enable/disable request