[RFC PATCH 0/3] mmc: core: Prepare mmc host locking for blk-mq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The current APIs, mmc_claim|release_host() doesn't play well when the mmc block
device driver tries to convert to blk-mq. In principle we need a re-claiming
possibility of the host from the mmc block device driver, and to know when to
release the host, need to keep track of a reference count instead.

This series, so far untested, implements the idea from above. Sent as an RFC
just to get peoples opinion of whether this is an approach that could work.

Ulf Hansson (3):
  mmc: sdio: Don't use abort-able claim host method from SDIO IRQ thread
  mmc: core: Remove redundant abort-able claim host API
  mmc: core: Allow mmc block device to re-claim the host

 drivers/mmc/core/core.c     | 33 ++++++++++++++-------------------
 drivers/mmc/core/core.h     | 10 ++--------
 drivers/mmc/core/sdio_irq.c | 10 ++++++----
 include/linux/mmc/host.h    |  2 +-
 4 files changed, 23 insertions(+), 32 deletions(-)

-- 
2.7.4




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux