Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
Browse files Browse the repository at this point in the history
* 'for-linus' of git://git.kernel.dk/linux-2.6-block:
  block: Allow changing max_sectors_kb above the default 512
  • Loading branch information
Linus Torvalds committed Sep 5, 2009
2 parents b71b7dc + c295fc0 commit e505a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e505a8d

Please sign in to comment.