diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2006-12-01 10:40:20 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2006-12-01 10:40:20 +0100 |
commit | ad2d7225709b11da47e092634cbdf0591829ae9c (patch) | |
tree | 5427bbb60456d8219dcc78b2d72820a99a604b90 /include/linux/elevator.h | |
parent | be1c63411addba3ad750eb4fdfc50b97bc82825e (diff) | |
download | op-kernel-dev-ad2d7225709b11da47e092634cbdf0591829ae9c.zip op-kernel-dev-ad2d7225709b11da47e092634cbdf0591829ae9c.tar.gz |
[PATCH] block: kill length alignment test in bio_map_user()
The target mode support is mapping in bios using bio_map_user. The
current targets do not need their len to be aligned with a queue limit
so this check is causing some problems. Note: pointers passed into the
kernel are properly aligned by usersapace tgt code so the uaddr check
in bio_map_user is ok.
The major user, blk_bio_map_user checks for the len before mapping
so it is not affected by this patch.
And the semi-newly added user blk_rq_map_user_iov has been failing
out when the len is not aligned properly so maybe people have been
good and not sending misaligned lens or that path is not used very
often and this change will not be very dangerous. st and sg do not
check the length and we have not seen any problem reports from those
wider used paths so this patch should be fairly safe - for mm
and wider testing at least.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/elevator.h')
0 files changed, 0 insertions, 0 deletions