diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-06 20:48:34 -0400 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-06 20:48:34 -0400 | 
| commit | bced13738405b62c8203df9c103d4ba63d747872 (patch) | |
| tree | 566795dc7493591182668a94855487dff034a2b3 /drivers/scsi/scsi_lib.c | |
| parent | 21f16289270447673a7263ccc0b22d562fb01ecb (diff) | |
| parent | 2b053729a84b6aac197df51b8729bc9fec743bff (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6: (32 commits)
  [SCSI] aacraid: prevent panic on adapter resource failure
  [SCSI] aha152x: use data accessors and !use_sg cleanup
  [SCSI] aha152x: Fix check_condition code-path
  [SCSI] aha152x: Clean Reset path
  [SCSI] aha152x: preliminary fixes and some comments
  [SCSI] aha152x: use bounce buffer
  [SCSI] aha152x: fix debug mode symbol conflict
  [SCSI] sd: disentangle barriers in SCSI
  [SCSI] lpfc : scsi command accessor fix for 8.2.2
  [SCSI] qlogicpti: Some cosmetic changes
  [SCSI] lpfc 8.2.2 : Change version number to 8.2.2
  [SCSI] lpfc 8.2.2 : Style cleanups
  [SCSI] lpfc 8.2.2 : Miscellaneous Bug Fixes
  [SCSI] lpfc 8.2.2 : Miscellaneous management and logging mods
  [SCSI] lpfc 8.2.2 : Rework the lpfc_printf_log() macro
  [SCSI] lpfc 8.2.2 : Attribute and Parameter splits for vport and physical port
  [SCSI] lpfc 8.2.2 : Fix locking around HBA's port_list
  [SCSI] lpfc 8.2.2 : Error messages and debugfs updates
  [SCSI] initialize shost_data to zero
  [SCSI] mptsas: add SMP passthrough support via bsg
  ...
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
| -rw-r--r-- | drivers/scsi/scsi_lib.c | 17 | 
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 21c075d44db1..a417a6ff9f97 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c  | |||
| @@ -1038,22 +1038,6 @@ static int scsi_init_io(struct scsi_cmnd *cmd) | |||
| 1038 | return BLKPREP_KILL; | 1038 | return BLKPREP_KILL; | 
| 1039 | } | 1039 | } | 
| 1040 | 1040 | ||
| 1041 | static int scsi_issue_flush_fn(struct request_queue *q, struct gendisk *disk, | ||
| 1042 | sector_t *error_sector) | ||
| 1043 | { | ||
| 1044 | struct scsi_device *sdev = q->queuedata; | ||
| 1045 | struct scsi_driver *drv; | ||
| 1046 | |||
| 1047 | if (sdev->sdev_state != SDEV_RUNNING) | ||
| 1048 | return -ENXIO; | ||
| 1049 | |||
| 1050 | drv = *(struct scsi_driver **) disk->private_data; | ||
| 1051 | if (drv->issue_flush) | ||
| 1052 | return drv->issue_flush(&sdev->sdev_gendev, error_sector); | ||
| 1053 | |||
| 1054 | return -EOPNOTSUPP; | ||
| 1055 | } | ||
| 1056 | |||
| 1057 | static struct scsi_cmnd *scsi_get_cmd_from_req(struct scsi_device *sdev, | 1041 | static struct scsi_cmnd *scsi_get_cmd_from_req(struct scsi_device *sdev, | 
| 1058 | struct request *req) | 1042 | struct request *req) | 
| 1059 | { | 1043 | { | 
| @@ -1596,7 +1580,6 @@ struct request_queue *scsi_alloc_queue(struct scsi_device *sdev) | |||
| 1596 | return NULL; | 1580 | return NULL; | 
| 1597 | 1581 | ||
| 1598 | blk_queue_prep_rq(q, scsi_prep_fn); | 1582 | blk_queue_prep_rq(q, scsi_prep_fn); | 
| 1599 | blk_queue_issue_flush_fn(q, scsi_issue_flush_fn); | ||
| 1600 | blk_queue_softirq_done(q, scsi_softirq_done); | 1583 | blk_queue_softirq_done(q, scsi_softirq_done); | 
| 1601 | return q; | 1584 | return q; | 
| 1602 | } | 1585 | } | 
