summaryrefslogtreecommitdiffstats
path: root/block/elevator.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-06-10 12:53:56 -0600
committerJens Axboe <axboe@fb.com>2014-06-10 12:53:56 -0600
commit58a4915ad2f8a87f4456aac260396df7e300e6f2 (patch)
tree6481a87de33d3caa7b647c3347324eea1c474216 /block/elevator.c
parent2b8393b43ec672bb263009cd74c056ab01d6ac17 (diff)
downloadlinux-0-day-58a4915ad2f8a87f4456aac260396df7e300e6f2.tar.gz
linux-0-day-58a4915ad2f8a87f4456aac260396df7e300e6f2.tar.xz
block: ensure that bio_add_page() always accepts a page for an empty bio
With commit 762380ad9322 added support for chunk sizes and no merging across them, it broke the rule of always allowing adding of a single page to an empty bio. So relax the restriction a bit to allow for that, similarly to what we have always done. This fixes a crash with mkfs.xfs and 512b sector sizes on NVMe. Reported-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/elevator.c')
0 files changed, 0 insertions, 0 deletions