diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-05 14:56:13 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-05 14:56:13 -0700 |
commit | e505a8d5f96a84f3043ce0c4eaee8f045996896c (patch) | |
tree | 622b5b817b9434b114d7015dbd3d8c83198fe350 | |
parent | b71b7dc09abaeb4417c37b96a898096286b65e3c (diff) | |
parent | c295fc05789653ef24f296299df7c5f92fe74dce (diff) |
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block:
block: Allow changing max_sectors_kb above the default 512
-rw-r--r-- | 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 418d63619680..d3aa2aadb3e0 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; |