linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] blk-mq: convert atomic_t to refcount_t
@ 2019-03-22 14:48 Yufen Yu
  2019-03-22 14:48 ` [PATCH 1/2] blk-mq: convert hctx.nr_active " Yufen Yu
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Yufen Yu @ 2019-03-22 14:48 UTC (permalink / raw)
  To: axboe, dwindsor, peterz; +Cc: linux-block

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-03-23 12:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-22 14:48 [PATCH 0/2] blk-mq: convert atomic_t to refcount_t Yufen Yu
2019-03-22 14:48 ` [PATCH 1/2] blk-mq: convert hctx.nr_active " Yufen Yu
2019-03-22 15:01   ` Peter Zijlstra
2019-03-22 15:04     ` Peter Zijlstra
2019-03-22 15:21       ` Jens Axboe
2019-03-23 12:30         ` yuyufen
2019-03-22 14:48 ` [PATCH 2/2] blk-mq: covert blk_mq_tag.active_queues " Yufen Yu
2019-03-22 15:02   ` Peter Zijlstra
2019-03-22 15:23 ` [PATCH 0/2] blk-mq: convert atomic_t " Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).