dm zoned: fix metadata block ref counting
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 17 Oct 2018 09:05:07 +0000 (18:05 +0900)
committerMike Snitzer <snitzer@redhat.com>
Thu, 18 Oct 2018 19:15:23 +0000 (15:15 -0400)
commit33c2865f8d011a2ca9f67124ddab9dc89382e9f1
tree5680e9ef136dd26d8d313380bbd87f758128d349
parentd857ad75edf3c0066fcd920746f9dc75382b3324
dm zoned: fix metadata block ref counting

Since the ref field of struct dmz_mblock is always used with the
spinlock of struct dmz_metadata locked, there is no need to use an
atomic_t type. Change the type of the ref field to an unsigne
integer.

Fixes: 3b1a94c88b79 ("dm zoned: drive-managed zoned block device target")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-zoned-metadata.c