original_kernel/block
Nikanth Karthikesan c295fc0578 block: Allow changing max_sectors_kb above the default 512
The patch "block: Use accessor functions for queue limits"
(ae03bf639a) changed queue_max_sectors_store()
to use blk_queue_max_sectors() instead of directly assigning the value.

But blk_queue_max_sectors() differs a bit
1. It sets both max_sectors_kb, and max_hw_sectors_kb
2. Never allows one to change max_sectors_kb above BLK_DEF_MAX_SECTORS. If one
specifies a value greater then max_hw_sectors is set to that value but
max_sectors is set to BLK_DEF_MAX_SECTORS

I am not sure whether blk_queue_max_sectors() should be changed, as it seems
to be that way for a long time. And there may be callers dependent on that
behaviour.

This patch simply reverts to the older way of directly assigning the value to
max_sectors as it was before.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-09-01 22:40:15 +02:00
..
Kconfig Make SCSI SG v4 driver enabled by default and remove EXPERIMENTAL dependency, since udev depends on BSG 2009-08-04 22:10:17 +02:00
Kconfig.iosched
Makefile block: get rid of queue-private command filter 2009-07-01 10:56:26 +02:00
as-iosched.c
blk-barrier.c
blk-core.c block: make the end_io functions be non-GPL exports 2009-07-28 22:11:24 +02:00
blk-exec.c
blk-integrity.c block: fix improper kobject release in blk_integrity_unregister 2009-07-28 09:11:14 +02:00
blk-ioc.c
blk-map.c
blk-merge.c block: don't merge requests of different failfast settings 2009-07-03 21:06:45 +02:00
blk-settings.c block: Update topology documentation 2009-08-01 10:24:35 +02:00
blk-softirq.c
blk-sysfs.c block: Allow changing max_sectors_kb above the default 512 2009-09-01 22:40:15 +02:00
blk-tag.c
blk-timeout.c
blk.h
bsg.c block: get rid of queue-private command filter 2009-07-01 10:56:26 +02:00
cfq-iosched.c cfq-iosched: reset oom_cfqq in cfq_set_request() 2009-07-10 20:31:54 +02:00
compat_ioctl.c
deadline-iosched.c
elevator.c block: fix failfast merge testing in elv_rq_merge_ok() 2009-07-17 14:50:43 +09:00
genhd.c
ioctl.c
noop-iosched.c
scsi_ioctl.c block: call blk_scsi_ioctl_init() 2009-07-10 20:31:53 +02:00