diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 13:09:16 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 13:09:16 -0400 |
| commit | 92d15c2ccbb3e31a3fc71ad28fdb55e1319383c0 (patch) | |
| tree | 8d83c0dc3c6b935d8367e331872f242b742f0a8a /drivers/message | |
| parent | f20bf6125605acbbc7eb8c9420d7221c91aa83eb (diff) | |
| parent | 644bd2f048972d75eb1979b1fdca257d528ce687 (diff) | |
Merge branch 'for-linus' of git://git.kernel.dk/data/git/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/data/git/linux-2.6-block: (63 commits)
Fix memory leak in dm-crypt
SPARC64: sg chaining support
SPARC: sg chaining support
PPC: sg chaining support
PS3: sg chaining support
IA64: sg chaining support
x86-64: enable sg chaining
x86-64: update pci-gart iommu to sg helpers
x86-64: update nommu to sg helpers
x86-64: update calgary iommu to sg helpers
swiotlb: sg chaining support
i386: enable sg chaining
i386 dma_map_sg: convert to using sg helpers
mmc: need to zero sglist on init
Panic in blk_rq_map_sg() from CCISS driver
remove sglist_len
remove blk_queue_max_phys_segments in libata
revert sg segment size ifdefs
Fixup u14-34f ENABLE_SG_CHAINING
qla1280: enable use_sg_chaining option
...
Diffstat (limited to 'drivers/message')
| -rw-r--r-- | drivers/message/fusion/mptscsih.c | 6 | ||||
| -rw-r--r-- | drivers/message/i2o/i2o_block.c | 24 |
2 files changed, 3 insertions, 27 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index 822a3aa4fae5..626bb3c9af2b 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
| @@ -293,7 +293,7 @@ nextSGEset: | |||
| 293 | for (ii=0; ii < (numSgeThisFrame-1); ii++) { | 293 | for (ii=0; ii < (numSgeThisFrame-1); ii++) { |
| 294 | thisxfer = sg_dma_len(sg); | 294 | thisxfer = sg_dma_len(sg); |
| 295 | if (thisxfer == 0) { | 295 | if (thisxfer == 0) { |
| 296 | sg ++; /* Get next SG element from the OS */ | 296 | sg = sg_next(sg); /* Get next SG element from the OS */ |
| 297 | sg_done++; | 297 | sg_done++; |
| 298 | continue; | 298 | continue; |
| 299 | } | 299 | } |
| @@ -301,7 +301,7 @@ nextSGEset: | |||
| 301 | v2 = sg_dma_address(sg); | 301 | v2 = sg_dma_address(sg); |
| 302 | mptscsih_add_sge(psge, sgflags | thisxfer, v2); | 302 | mptscsih_add_sge(psge, sgflags | thisxfer, v2); |
| 303 | 303 | ||
| 304 | sg++; /* Get next SG element from the OS */ | 304 | sg = sg_next(sg); /* Get next SG element from the OS */ |
| 305 | psge += (sizeof(u32) + sizeof(dma_addr_t)); | 305 | psge += (sizeof(u32) + sizeof(dma_addr_t)); |
| 306 | sgeOffset += (sizeof(u32) + sizeof(dma_addr_t)); | 306 | sgeOffset += (sizeof(u32) + sizeof(dma_addr_t)); |
| 307 | sg_done++; | 307 | sg_done++; |
| @@ -322,7 +322,7 @@ nextSGEset: | |||
| 322 | v2 = sg_dma_address(sg); | 322 | v2 = sg_dma_address(sg); |
| 323 | mptscsih_add_sge(psge, sgflags | thisxfer, v2); | 323 | mptscsih_add_sge(psge, sgflags | thisxfer, v2); |
| 324 | /* | 324 | /* |
| 325 | sg++; | 325 | sg = sg_next(sg); |
| 326 | psge += (sizeof(u32) + sizeof(dma_addr_t)); | 326 | psge += (sizeof(u32) + sizeof(dma_addr_t)); |
| 327 | */ | 327 | */ |
| 328 | sgeOffset += (sizeof(u32) + sizeof(dma_addr_t)); | 328 | sgeOffset += (sizeof(u32) + sizeof(dma_addr_t)); |
diff --git a/drivers/message/i2o/i2o_block.c b/drivers/message/i2o/i2o_block.c index 50b2c7334410..d602ba6d5417 100644 --- a/drivers/message/i2o/i2o_block.c +++ b/drivers/message/i2o/i2o_block.c | |||
| @@ -149,29 +149,6 @@ static int i2o_block_device_flush(struct i2o_device *dev) | |||
| 149 | }; | 149 | }; |
| 150 | 150 | ||
| 151 | /** | 151 | /** |
| 152 | * i2o_block_issue_flush - device-flush interface for block-layer | ||
| 153 | * @queue: the request queue of the device which should be flushed | ||
| 154 | * @disk: gendisk | ||
| 155 | * @error_sector: error offset | ||
| 156 | * | ||
| 157 | * Helper function to provide flush functionality to block-layer. | ||
| 158 | * | ||
| 159 | * Returns 0 on success or negative error code on failure. | ||
| 160 | */ | ||
| 161 | |||
| 162 | static int i2o_block_issue_flush(struct request_queue * queue, struct gendisk *disk, | ||
| 163 | sector_t * error_sector) | ||
| 164 | { | ||
| 165 | struct i2o_block_device *i2o_blk_dev = queue->queuedata; | ||
| 166 | int rc = -ENODEV; | ||
| 167 | |||
| 168 | if (likely(i2o_blk_dev)) | ||
| 169 | rc = i2o_block_device_flush(i2o_blk_dev->i2o_dev); | ||
| 170 | |||
| 171 | return rc; | ||
| 172 | } | ||
| 173 | |||
| 174 | /** | ||
| 175 | * i2o_block_device_mount - Mount (load) the media of device dev | 152 | * i2o_block_device_mount - Mount (load) the media of device dev |
| 176 | * @dev: I2O device which should receive the mount request | 153 | * @dev: I2O device which should receive the mount request |
| 177 | * @media_id: Media Identifier | 154 | * @media_id: Media Identifier |
| @@ -1009,7 +986,6 @@ static struct i2o_block_device *i2o_block_device_alloc(void) | |||
| 1009 | } | 986 | } |
| 1010 | 987 | ||
| 1011 | blk_queue_prep_rq(queue, i2o_block_prep_req_fn); | 988 | blk_queue_prep_rq(queue, i2o_block_prep_req_fn); |
| 1012 | blk_queue_issue_flush_fn(queue, i2o_block_issue_flush); | ||
| 1013 | 989 | ||
| 1014 | gd->major = I2O_MAJOR; | 990 | gd->major = I2O_MAJOR; |
| 1015 | gd->queue = queue; | 991 | gd->queue = queue; |
