drivers/dax: Expand lock scope to cover the use of addresses
authorIra Weiny <ira.weiny@intel.com>
Fri, 17 Jul 2020 07:20:50 +0000 (00:20 -0700)
committerVishal Verma <vishal.l.verma@intel.com>
Tue, 28 Jul 2020 17:50:08 +0000 (11:50 -0600)
commiteedfd73d401b5584ab270b5f9f80079e56c7807e
tree042df0251a254fd2ae99c561e2f5cea5663ffb0e
parentc7fe193f1877e80e905a39e494ff53bd20c97970
drivers/dax: Expand lock scope to cover the use of addresses

The addition of PKS protection to dax read lock/unlock will require that
the address returned by dax_direct_access() be protected by this lock.

Correct the locking by ensuring that the use of kaddr and end_kaddr
are covered by the dax read lock/unlock.

Link: https://lore.kernel.org/r/20200717072056.73134-12-ira.weiny@intel.com
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
drivers/dax/super.c