]> git.baikalelectronics.ru Git - kernel.git/commit
block: avoid scatterlist offsets > PAGE_SIZE
authorChristoph Hellwig <hch@lst.de>
Fri, 19 Apr 2019 06:56:24 +0000 (08:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Apr 2019 15:48:12 +0000 (09:48 -0600)
commit57238de5d765d9543aca90f0092fcb13783fe83f
tree500c0d702e1f9168668cb3c90b80a9051597aa97
parentc7661742e94fd1a950dd12ee35b5130673ff4a4c
block: avoid scatterlist offsets > PAGE_SIZE

While we generally allow scatterlists to have offsets larger than page
size for an entry, and other subsystems like the crypto code make use of
that, the block layer isn't quite ready for that.  Flip the switch back
to avoid them for now, and revisit that decision early in a merge window
once the known offenders are fixed.

Fixes: 19b8e8a37279 ("block: rewrite blk_bvec_map_sg to avoid a nth_page call")
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c