]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - block/blk-mq-tag.h
sbitmap: push per-cpu last_tag into sbitmap_queue
authorOmar Sandoval <osandov@fb.com>
Sat, 17 Sep 2016 08:28:23 +0000 (01:28 -0700)
committerJens Axboe <axboe@fb.com>
Sat, 17 Sep 2016 14:39:10 +0000 (08:39 -0600)
commit40aabb67464d5aad9ca3d2a5fedee56e2ff45aa0
tree19592825f8eb48363f5f9279c0d32003e7ed6532
parent48e28166a7b608e19a6aea3acadd81cdfe660f6b
sbitmap: push per-cpu last_tag into sbitmap_queue

Allocating your own per-cpu allocation hint separately makes for an
awkward API. Instead, allocate the per-cpu hint as part of the struct
sbitmap_queue. There's no point for a struct sbitmap_queue without the
cache, but you can still use a bare struct sbitmap.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-tag.c
block/blk-mq-tag.h
block/blk-mq.c
block/blk-mq.h
include/linux/sbitmap.h
lib/sbitmap.c