Home
last modified time | relevance | path

Searched hist:a83b576c9c25cf771fb0b15ec5eb2e7510ec2f5a (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/block/
H A Dblk-stat.cdiff a83b576c9c25cf771fb0b15ec5eb2e7510ec2f5a Tue Mar 21 18:20:01 CDT 2017 Jens Axboe <axboe@fb.com> block: fix stacked driver stats init and free

If a driver allocates a queue for stacked usage, then it does
not currently get stats allocated. This causes the later init
of, eg, writeback throttling to blow up. Move the init to the
queue allocation instead.

Additionally, allow a NULL callback unregistration. This avoids
having the caller check for that, fixing another oops on
removal of a block device that doesn't have poll stats allocated.

Fixes: 34dbad5d26e2 ("blk-stat: convert to callback-based statistics reporting")
Signed-off-by: Jens Axboe <axboe@fb.com>
H A Dblk-core.cdiff a83b576c9c25cf771fb0b15ec5eb2e7510ec2f5a Tue Mar 21 18:20:01 CDT 2017 Jens Axboe <axboe@fb.com> block: fix stacked driver stats init and free

If a driver allocates a queue for stacked usage, then it does
not currently get stats allocated. This causes the later init
of, eg, writeback throttling to blow up. Move the init to the
queue allocation instead.

Additionally, allow a NULL callback unregistration. This avoids
having the caller check for that, fixing another oops on
removal of a block device that doesn't have poll stats allocated.

Fixes: 34dbad5d26e2 ("blk-stat: convert to callback-based statistics reporting")
Signed-off-by: Jens Axboe <axboe@fb.com>