dmflakey: support external log and realtime devices
authorDarrick J. Wong <djwong@kernel.org>
Tue, 20 Jul 2021 01:09:08 +0000 (18:09 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 8 Aug 2021 14:57:09 +0000 (22:57 +0800)
commit9c1f3149271f556c031b6a348acfae5ce47ce18f
tree1b4cef5470c0c63998b9c43a4e2ea628da71dc0d
parentde1196dcd9b618d777604cdaa030f0c06e7a8c64
dmflakey: support external log and realtime devices

Upgrade the dmflakey code to coordinate making external scratch log and
scratch realtime devices flakey along with the scratch device.  Note
that unlike SCRATCH_DEV, we save the old rt/log devices as separate
variables and replace SCRATCH_{RT,LOG}DEV so that helper functions
continue to work without modification.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/dmflakey