diff options
author | Christoph Hellwig <hch@lst.de> | 2014-09-06 03:20:23 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-24 19:56:55 +0100 |
commit | 3c356bde19e9a728b26a231a23099c8057dbe881 (patch) | |
tree | 5c36f956e9f8a15de22dfca057b07c63818eeeda /drivers/scsi/sr.c | |
parent | scsi: remove scsi_next_command (diff) | |
download | linux-3c356bde19e9a728b26a231a23099c8057dbe881.tar.xz linux-3c356bde19e9a728b26a231a23099c8057dbe881.zip |
scsi: stop passing a gfp_mask argument down the command setup path
There is no reason for ULDs to pass in a flag on how to allocate the S/G
lists. While we don't need GFP_ATOMIC for the blk-mq case because we
don't hold locks, that decision can be made way down the chain without
having to pass a pointless gfp_mask argument.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r-- | drivers/scsi/sr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 3d5399e341af..5ebadc2ace9b 100644 --- a/drivers/scsi/sr.c +++ b/drivers/scsi/sr.c @@ -387,7 +387,7 @@ static int sr_init_command(struct scsi_cmnd *SCpnt) struct request *rq = SCpnt->request; int ret; - ret = scsi_init_io(SCpnt, GFP_ATOMIC); + ret = scsi_init_io(SCpnt); if (ret != BLKPREP_OK) goto out; SCpnt = rq->special; |