* [uml-devel] [PATCH 2/3] UML - Limit request size on COWed devices
@ 2007-07-13 14:37 ` Jeff Dike
0 siblings, 0 replies; 7+ messages in thread
From: Jeff Dike @ 2007-07-13 14:37 UTC (permalink / raw)
To: Andrew Morton; +Cc: Nix, LKML, uml-devel
COWed devices can't handle more than 32 (64 on x86_64) sectors in one
request due to the size of the bitmap being carried around in the
io_thread_req.
Enforce that by telling the block layer not to put too many sectors in
requests to COWed devices.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
arch/um/drivers/ubd_kern.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6.17/arch/um/drivers/ubd_kern.c
===================================================================
--- linux-2.6.17.orig/arch/um/drivers/ubd_kern.c 2007-07-09 08:53:09.000000000 -0400
+++ linux-2.6.17/arch/um/drivers/ubd_kern.c 2007-07-09 18:08:33.000000000 -0400
@@ -712,6 +712,8 @@ static int ubd_add(int n, char **error_o
ubd_dev->queue->queuedata = ubd_dev;
blk_queue_max_hw_segments(ubd_dev->queue, MAX_SG);
+ if(ubd_dev->cow.file != NULL)
+ blk_queue_max_sectors(ubd_dev->queue, 8 * sizeof(long));
err = ubd_disk_register(MAJOR_NR, ubd_dev->size, n, &ubd_gendisk[n]);
if(err){
*error_out = "Failed to register device";
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/3] UML - Limit request size on COWed devices
@ 2007-07-13 14:37 ` Jeff Dike
0 siblings, 0 replies; 7+ messages in thread
From: Jeff Dike @ 2007-07-13 14:37 UTC (permalink / raw)
To: Andrew Morton; +Cc: Nix, LKML, uml-devel
COWed devices can't handle more than 32 (64 on x86_64) sectors in one
request due to the size of the bitmap being carried around in the
io_thread_req.
Enforce that by telling the block layer not to put too many sectors in
requests to COWed devices.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
arch/um/drivers/ubd_kern.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6.17/arch/um/drivers/ubd_kern.c
===================================================================
--- linux-2.6.17.orig/arch/um/drivers/ubd_kern.c 2007-07-09 08:53:09.000000000 -0400
+++ linux-2.6.17/arch/um/drivers/ubd_kern.c 2007-07-09 18:08:33.000000000 -0400
@@ -712,6 +712,8 @@ static int ubd_add(int n, char **error_o
ubd_dev->queue->queuedata = ubd_dev;
blk_queue_max_hw_segments(ubd_dev->queue, MAX_SG);
+ if(ubd_dev->cow.file != NULL)
+ blk_queue_max_sectors(ubd_dev->queue, 8 * sizeof(long));
err = ubd_disk_register(MAJOR_NR, ubd_dev->size, n, &ubd_gendisk[n]);
if(err){
*error_out = "Failed to register device";
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [uml-devel] [PATCH 2/3] UML - Limit request size on COWed devices
2007-07-13 14:37 ` Jeff Dike
@ 2007-07-13 19:00 ` Nix
-1 siblings, 0 replies; 7+ messages in thread
From: Nix @ 2007-07-13 19:00 UTC (permalink / raw)
To: Jeff Dike; +Cc: Andrew Morton, LKML, uml-devel
On 13 Jul 2007, Jeff Dike uttered the following:
> COWed devices can't handle more than 32 (64 on x86_64) sectors in one
> request due to the size of the bitmap being carried around in the
> io_thread_req.
This feels like a -stable candidate to me.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] UML - Limit request size on COWed devices
@ 2007-07-13 19:00 ` Nix
0 siblings, 0 replies; 7+ messages in thread
From: Nix @ 2007-07-13 19:00 UTC (permalink / raw)
To: Jeff Dike; +Cc: Andrew Morton, LKML, uml-devel
On 13 Jul 2007, Jeff Dike uttered the following:
> COWed devices can't handle more than 32 (64 on x86_64) sectors in one
> request due to the size of the bitmap being carried around in the
> io_thread_req.
This feels like a -stable candidate to me.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [uml-devel] [PATCH 2/3] UML - Limit request size on COWed devices
2007-07-13 19:00 ` Nix
@ 2007-07-13 20:46 ` Jeff Dike
-1 siblings, 0 replies; 7+ messages in thread
From: Jeff Dike @ 2007-07-13 20:46 UTC (permalink / raw)
To: Nix; +Cc: Andrew Morton, LKML, uml-devel
On Fri, Jul 13, 2007 at 08:00:13PM +0100, Nix wrote:
> This feels like a -stable candidate to me.
Right you are - that's the first place I sent it.
Jeff
--
Work email - jdike at linux dot intel dot com
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] UML - Limit request size on COWed devices
@ 2007-07-13 20:46 ` Jeff Dike
0 siblings, 0 replies; 7+ messages in thread
From: Jeff Dike @ 2007-07-13 20:46 UTC (permalink / raw)
To: Nix; +Cc: Andrew Morton, LKML, uml-devel
On Fri, Jul 13, 2007 at 08:00:13PM +0100, Nix wrote:
> This feels like a -stable candidate to me.
Right you are - that's the first place I sent it.
Jeff
--
Work email - jdike at linux dot intel dot com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [uml-devel] [PATCH 2/3] UML - Limit request size on COWed devices
2007-07-13 20:46 ` Jeff Dike
(?)
@ 2007-07-14 0:31 ` Nix
-1 siblings, 0 replies; 7+ messages in thread
From: Nix @ 2007-07-14 0:31 UTC (permalink / raw)
To: Jeff Dike; +Cc: uml-devel
On 13 Jul 2007, Jeff Dike outgrape:
> On Fri, Jul 13, 2007 at 08:00:13PM +0100, Nix wrote:
>> This feels like a -stable candidate to me.
>
> Right you are - that's the first place I sent it.
Ah. So, first I report a bug two days *after* you post a fix, and then I
recommend you send it somewhere you've already sent it.
I think I need to go and dig a hole and crawl inside for a while. :/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-07-14 0:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-13 14:37 [uml-devel] [PATCH 2/3] UML - Limit request size on COWed devices Jeff Dike
2007-07-13 14:37 ` Jeff Dike
2007-07-13 19:00 ` [uml-devel] " Nix
2007-07-13 19:00 ` Nix
2007-07-13 20:46 ` [uml-devel] " Jeff Dike
2007-07-13 20:46 ` Jeff Dike
2007-07-14 0:31 ` [uml-devel] " Nix
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.