]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
s390/dasd: Fix zero write for FBA devices
authorJan Höppner <hoeppner@linux.ibm.com>
Mon, 14 Sep 2020 11:56:47 +0000 (13:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Sep 2020 01:40:21 +0000 (19:40 -0600)
commit709192d531e5b0a91f20aa14abfe2fc27ddd47af
tree3ef738f7fb01ff7d1a9630bcb748710733bfb2c5
parentfd04358e0196fe3b7b44c69b755c7fc329360829
s390/dasd: Fix zero write for FBA devices

A discard request that writes zeros using the global kernel internal
ZERO_PAGE will fail for machines with more than 2GB of memory due to the
location of the ZERO_PAGE.

Fix this by using a driver owned global zero page allocated with GFP_DMA
flag set.

Fixes: 28b841b3a7cb ("s390/dasd: Add discard support for FBA devices")
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Cc: <stable@vger.kernel.org> # 4.14+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/s390/block/dasd_fba.c