scsi_lib.c (a02633e9b13dcb9b1a656b08f81bc8ba2d4d2294) | scsi_lib.c (5ee0524ba137fe928a88b440d014e3c8451fb32c) |
---|---|
1/* 2 * Copyright (C) 1999 Eric Youngdale 3 * Copyright (C) 2014 Christoph Hellwig 4 * 5 * SCSI queueing library. 6 * Initial versions: Eric Youngdale (eric@andante.org). 7 * Based upon conversations with large numbers 8 * of people at Linux Expo. --- 2209 unchanged lines hidden (view full) --- 2218 cmd->sense_buffer); 2219} 2220 2221struct request_queue *scsi_old_alloc_queue(struct scsi_device *sdev) 2222{ 2223 struct Scsi_Host *shost = sdev->host; 2224 struct request_queue *q; 2225 | 1/* 2 * Copyright (C) 1999 Eric Youngdale 3 * Copyright (C) 2014 Christoph Hellwig 4 * 5 * SCSI queueing library. 6 * Initial versions: Eric Youngdale (eric@andante.org). 7 * Based upon conversations with large numbers 8 * of people at Linux Expo. --- 2209 unchanged lines hidden (view full) --- 2218 cmd->sense_buffer); 2219} 2220 2221struct request_queue *scsi_old_alloc_queue(struct scsi_device *sdev) 2222{ 2223 struct Scsi_Host *shost = sdev->host; 2224 struct request_queue *q; 2225 |
2226 q = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE); | 2226 q = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE, NULL); |
2227 if (!q) 2228 return NULL; 2229 q->cmd_size = sizeof(struct scsi_cmnd) + shost->hostt->cmd_size; 2230 q->rq_alloc_data = shost; 2231 q->request_fn = scsi_request_fn; 2232 q->init_rq_fn = scsi_old_init_rq; 2233 q->exit_rq_fn = scsi_old_exit_rq; 2234 q->initialize_rq_fn = scsi_initialize_rq; --- 1317 unchanged lines hidden --- | 2227 if (!q) 2228 return NULL; 2229 q->cmd_size = sizeof(struct scsi_cmnd) + shost->hostt->cmd_size; 2230 q->rq_alloc_data = shost; 2231 q->request_fn = scsi_request_fn; 2232 q->init_rq_fn = scsi_old_init_rq; 2233 q->exit_rq_fn = scsi_old_exit_rq; 2234 q->initialize_rq_fn = scsi_initialize_rq; --- 1317 unchanged lines hidden --- |