summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-cache-policy-smq.c
diff options
context:
space:
mode:
authorJohn Pittman <jpittman@redhat.com>2018-08-23 13:35:57 -0400
committerMike Snitzer <snitzer@redhat.com>2018-10-16 14:27:38 -0400
commit092b5648760a23656f6dcc83b74f4cf661094aca (patch)
tree6f3d1b43bf3cd0caa7a8ac3fa4b60f37221f519e /drivers/md/dm-cache-policy-smq.c
parent22d4c291f58752d14efb8a185b772a3fc3e947d2 (diff)
downloadlinux-stable-092b5648760a23656f6dcc83b74f4cf661094aca.tar.gz
linux-stable-092b5648760a23656f6dcc83b74f4cf661094aca.tar.bz2
linux-stable-092b5648760a23656f6dcc83b74f4cf661094aca.zip
dm zoned: target: use refcount_t for dm zoned reference counters
The API surrounding refcount_t should be used in place of atomic_t when variables are being used as reference counters. This API can prevent issues such as counter overflows and use-after-free conditions. Within the dm zoned target stack, the atomic_t API is used for bioctx->ref and cw->refcount. Change these to use refcount_t, avoiding the issues mentioned. Signed-off-by: John Pittman <jpittman@redhat.com> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Tested-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-cache-policy-smq.c')
0 files changed, 0 insertions, 0 deletions