Message ID | 20210621080144.3655131-1-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mmc: initialized disk->minors | expand |
On Mon, 21 Jun 2021 at 10:02, Christoph Hellwig <hch@lst.de> wrote: > > Fix a let hunk from the blk_mq_alloc_disk conversion. > > Fixes: 281ea6a5bfdc ("mmc: switch to blk_mq_alloc_disk") > Reported-by: Marek Szyprowski <m.szyprowski@samsung.com> > Signed-off-by: Christoph Hellwig <hch@lst.de> > Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Kind regards Uffe > --- > drivers/mmc/core/block.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c > index e7f89cbf9232..9890a1532cb0 100644 > --- a/drivers/mmc/core/block.c > +++ b/drivers/mmc/core/block.c > @@ -2331,6 +2331,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, > md->queue.blkdata = md; > > md->disk->major = MMC_BLOCK_MAJOR; > + md->disk->minors = perdev_minors; > md->disk->first_minor = devidx * perdev_minors; > md->disk->fops = &mmc_bdops; > md->disk->private_data = md; > -- > 2.30.2 >
On 6/21/21 2:01 AM, Christoph Hellwig wrote:
> Fix a let hunk from the blk_mq_alloc_disk conversion.
Applied, thanks.
diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index e7f89cbf9232..9890a1532cb0 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -2331,6 +2331,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, md->queue.blkdata = md; md->disk->major = MMC_BLOCK_MAJOR; + md->disk->minors = perdev_minors; md->disk->first_minor = devidx * perdev_minors; md->disk->fops = &mmc_bdops; md->disk->private_data = md;