[SCSI] sd: disentangle barriers in SCSI
Our current implementation has a generic set of barrier functions that go through the SCSI driver model. Realistically, this is unnecessary, because the only device that can use barriers (sd) can set the flush functions up at probe or revalidate time. This patch pulls the barrier functions out of the mid layer and scsi driver model and relocates them directly in sd. Acked-by: Tejun Heo <htejun@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
66dbfbe6fd
commit
03a5743a12
@@ -13,8 +13,6 @@ struct scsi_driver {
|
||||
|
||||
int (*init_command)(struct scsi_cmnd *);
|
||||
void (*rescan)(struct device *);
|
||||
int (*issue_flush)(struct device *, sector_t *);
|
||||
int (*prepare_flush)(struct request_queue *, struct request *);
|
||||
};
|
||||
#define to_scsi_driver(drv) \
|
||||
container_of((drv), struct scsi_driver, gendrv)
|
||||
|
||||
Reference in New Issue
Block a user