![]() ![]() Return -232,8 +222,7 int _scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, + req = scsi_alloc_request(sdev->request_queue, opf, args.req_flags) rq_flags & RQF_PM ? BLK_MQ_REQ_PM : 0) req = scsi_alloc_request(sdev->request_queue, + int timeout, int retries, const struct scsi_exec_args args) + blk_opf_t opf, void *buffer, unsigned int bufflen, int timeout, int retries, blk_opf_t flags, unsigned char *sense, struct scsi_sense_hdr *sshdr, int data_direction, void *buffer, unsigned bufflen, Int _scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, * Linux error code if we didn't get that far. * Returns the scsi_cmnd result field if a command was executed, or a negative See struct definition for field descriptions * _scsi_execute - insert request and wait for the result +++ -185,39 +185,29 void scsi_queue_insert(struct scsi_cmnd *cmd, int reason) ![]() The new helpers then remove scsi_execute and scsi_execute_req.ĭrivers/scsi/scsi_lib.c | 40 ++++++++. The next patches will convert scsi_execute and scsi_execute_req users to scsi_execute_cmd does not support the scsi_exec_args struct. scsi_execute_args which takes the scsi_exec_args struct.Ģ. This patch adds the new struct, temporarilyĬonverts scsi_execute and scsi_execute_req and add two helpers:ġ. This begins to move the SCSI execution functions to use a struct for ` (13 subsequent siblings) 14 siblings, 2 replies 55+ messages in thread 6:13 ` scsi: libata: Convert to scsi_execute_args Mike Christie 6:13 scsi: Add struct for args to execution functions Mike 6:13 ` Mike Christie * scsi: Add struct for args to execution functions Then remove the NULL args check in _scsi_execute. Macro for the case the caller doesn't want to pass in a scsi_exec_args Pass a struct scsi_exec_args instead of pointer and add another Use the more standard way of passing in a struct for passing in The 2 sets to make it easier to review and post. To control retries because I'm adding a new optional argument. This will be needed for the patches that allow the scsi passthrough users The following patches were made over Martin's 6.2 scsi staging branch andĪdd a struct that contains optinal arguments to the scsi_execute* functions. To: john.g.garry, bvanassche, mwilck, hch, martin.petersen, ` (14 more replies) 0 siblings, 15 replies 55+ messages in thread Scsi: Add struct for args to execution functions All of help / color / mirror / Atom feed * scsi: Add struct for args to execution functions 6:13 Mike Christie ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |