[PATCH] incorrect block layer segment accounting
commit6e941592b267a7917f293670a762bf7979f24e4e
authorJens Axboe <axboe@suse.de>
Fri, 15 Nov 2002 00:12:55 +0000 (14 16:12 -0800)
committerJens Axboe <axboe@suse.de>
Fri, 15 Nov 2002 00:12:55 +0000 (14 16:12 -0800)
treef61b47d551f81febffc7eae8e95491bb92c89460
parentb11523f3840b25ad8be50e33f8729cd922447dce
[PATCH] incorrect block layer segment accounting

There's a long standing bug in blk_recount_segments(). Clustering means
physical segment colascing, not hardware segment colascing. This
basically means that we are mapping more segments than here than the bio
+ requests contains, and this causes a bug in the SCSI layer for host
adapters that have CLUSTERING enabled.

This patch makes sure that we are clustering physical segments
correctly, and correctly accounting hardware segments. Please apply.
drivers/block/ll_rw_blk.c