[PATCH 0/2] blk-mq: convert atomic_t to refcount_t

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

 



Hi,

This patchset covert atomic variables (hctx.nr_active and blk_mq_tag.active_queues)
to newly provided refcount_t type and API, which can prevent accidental counter overflows
and underflows.


Yufen Yu (2):
  blk-mq: convert hctx.nr_active to refcount_t
  blk-mq: covert blk_mq_tag.active_queues to refcount_t

 block/blk-mq-debugfs.c | 4 ++--
 block/blk-mq-tag.c     | 8 ++++----
 block/blk-mq-tag.h     | 2 +-
 block/blk-mq.c         | 8 ++++----
 block/blk-mq.h         | 2 +-
 include/linux/blk-mq.h | 2 +-
 6 files changed, 13 insertions(+), 13 deletions(-)

-- 
2.16.2.dirty




[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