All of lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] block fix for 2.6.31
@ 2009-09-03  7:57 Jens Axboe
  0 siblings, 0 replies; only message in thread
From: Jens Axboe @ 2009-09-03  7:57 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux Kernel

Hi,

This fixes a regression with setting max_sectors_kb higher than our
default of 512kb. Please pull.

  git://git.kernel.dk/linux-2.6-block.git for-linus

Nikanth Karthikesan (1):
      block: Allow changing max_sectors_kb above the default 512

 block/blk-sysfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index 418d636..d3aa2aa 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -133,7 +133,7 @@ queue_max_sectors_store(struct request_queue *q, const char *page, size_t count)
 		return -EINVAL;
 
 	spin_lock_irq(q->queue_lock);
-	blk_queue_max_sectors(q, max_sectors_kb << 1);
+	q->limits.max_sectors = max_sectors_kb << 1;
 	spin_unlock_irq(q->queue_lock);
 
 	return ret;

-- 
Jens Axboe


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-03  7:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-03  7:57 [GIT PULL] block fix for 2.6.31 Jens Axboe

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.