author: Christoph Hellwig <hch@lst.de> 2020-03-27 09:30:11 +0100
committer: Jens Axboe <axboe@kernel.dk> 2020-03-27 10:23:43 -0600
commit: 3d745ea5b095a3985129e162900b7e6c22518a9d
parent: ff27668ce8092c74965f21b5c02ebc6b6764db95
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 2 deletions
diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c
index 7543e395a2c6..db38a68abb6c 100644
--- a/drivers/lightnvm/core.c
+++ b/drivers/lightnvm/core.c
@@ -380,12 +380,11 @@ static int nvm_create_tgt(struct nvm_dev *dev, struct nvm_ioctl_create *create)
goto err_dev;
}
- tqueue = blk_alloc_queue_node(GFP_KERNEL, dev->q->node);
+ tqueue = blk_alloc_queue(tt->make_rq, dev->q->node);
if (!tqueue) {
ret = -ENOMEM;
goto err_disk;
}
- blk_queue_make_request(tqueue, tt->make_rq);
strlcpy(tdisk->disk_name, create->tgtname, sizeof(tdisk->disk_name));
tdisk->flags = GENHD_FL_EXT_DEVT;