]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] tgt: rm bio hacks in scsi tgt
authorMike Christie <michaelc@cs.wisc.edu>
Sat, 3 Mar 2007 00:55:54 +0000 (09:55 +0900)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 11 Mar 2007 16:31:33 +0000 (11:31 -0500)
commitc152bf0468bcaf3aae38352cc3a1967e04e274c3
treef633a66a5cc7c9d9cb5399107cbe7147fbd47d2a
parent87c9e90ac51c553c4c48241b14bb436fec03aee2
[SCSI] tgt: rm bio hacks in scsi tgt

scsi tgt breaks up a command into multple scatterlists
if we cannot fit all the data in one. This was because
the block rq helpers did not support large requests and
because we can get a command of any old size so it is
hard to preallocate pages for scatterlist large enough
(we cannot really preallocate pages with the bio map
user path). In 2.6.20, we added large request support to
the block layer helper, blk_rq_map_user. And at LSF,
we talked about increasing SCSI_MAX_PHYS_SEGMENTS for
scsi tgt if we want to support really really :) large
(greater than 256 * PAGE_SIZE in the worst mapping case)
requests.

The only target currently implemented does not even support
the multiple scatterlists stuff and only supports smaller
requests, so this patch just coverts scsi tgt to use
blk_rq_map_user.

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>
drivers/scsi/scsi_tgt_lib.c
include/scsi/scsi_cmnd.h