queue.c (0ea8a56de21be24cb79abb03dee79aabcd60a316) | queue.c (1cb039f3dc1619eb795c54aad0a98fdb379b4237) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2003 Russell King, All Rights Reserved. 4 * Copyright 2006-2007 Pierre Ossman 5 */ 6#include <linux/slab.h> 7#include <linux/module.h> 8#include <linux/blkdev.h> --- 458 unchanged lines hidden (view full) --- 467 468 mq->queue = blk_mq_init_queue(&mq->tag_set); 469 if (IS_ERR(mq->queue)) { 470 ret = PTR_ERR(mq->queue); 471 goto free_tag_set; 472 } 473 474 if (mmc_host_is_spi(host) && host->use_spi_crc) | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2003 Russell King, All Rights Reserved. 4 * Copyright 2006-2007 Pierre Ossman 5 */ 6#include <linux/slab.h> 7#include <linux/module.h> 8#include <linux/blkdev.h> --- 458 unchanged lines hidden (view full) --- 467 468 mq->queue = blk_mq_init_queue(&mq->tag_set); 469 if (IS_ERR(mq->queue)) { 470 ret = PTR_ERR(mq->queue); 471 goto free_tag_set; 472 } 473 474 if (mmc_host_is_spi(host) && host->use_spi_crc) |
475 mq->queue->backing_dev_info->capabilities |= 476 BDI_CAP_STABLE_WRITES; | 475 blk_queue_flag_set(QUEUE_FLAG_STABLE_WRITES, mq->queue); |
477 478 mq->queue->queuedata = mq; 479 blk_queue_rq_timeout(mq->queue, 60 * HZ); 480 481 mmc_setup_queue(mq, card); 482 return 0; 483 484free_tag_set: --- 54 unchanged lines hidden --- | 476 477 mq->queue->queuedata = mq; 478 blk_queue_rq_timeout(mq->queue, 60 * HZ); 479 480 mmc_setup_queue(mq, card); 481 return 0; 482 483free_tag_set: --- 54 unchanged lines hidden --- |