sg: remove ->sg_magic member
authorJens Axboe <axboe@kernel.dk>
Fri, 29 Jun 2018 14:48:06 +0000 (08:48 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Jun 2018 14:48:06 +0000 (08:48 -0600)
commit9544bc5347207a68eb308cc8aaaed6c3a687cabd
tree94a63c95fc1841e67aeddc0ddc9ab1872facc8ba
parent49f1c61071f528ebda699ea59ab87aec3df79d4e
sg: remove ->sg_magic member

This was introduced more than a decade ago when sg chaining was
added, but we never really caught anything with it. The scatterlist
entry size can be critical, since drivers allocate it, so remove
the magic member. Recently it's been triggering allocation stalls
and failures in NVMe.

Tested-by: Jordan Glover <Golden_Miller83@protonmail.ch>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/gpu/drm/i915/i915_drv.h
include/linux/scatterlist.h
lib/scatterlist.c
tools/virtio/linux/scatterlist.h