summaryrefslogtreecommitdiffstats
path: root/lib/test_sysctl.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2018-10-29 13:57:19 +0100
committerJens Axboe <axboe@kernel.dk>2018-11-09 14:23:18 +0100
commit34ffec60b27aa81d04e274e71e4c6ef740f75fc7 (patch)
tree242e7545cc12a3db2cba1831e21280955808c5b8 /lib/test_sysctl.c
parentblock: cleanup __blkdev_issue_discard() (diff)
downloadlinux-34ffec60b27aa81d04e274e71e4c6ef740f75fc7.tar.xz
linux-34ffec60b27aa81d04e274e71e4c6ef740f75fc7.zip
block: make sure writesame bio is aligned with logical block size
Obviously the created writesame bio has to be aligned with logical block size, and use bio_allowed_max_sectors() to retrieve this number. Cc: stable@vger.kernel.org Cc: Mike Snitzer <snitzer@redhat.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Xiao Ni <xni@redhat.com> Cc: Mariusz Dabrowski <mariusz.dabrowski@intel.com> Fixes: b49a0871be31a745b2ef ("block: remove split code in blkdev_issue_{discard,write_same}") Tested-by: Rui Salvaterra <rsalvaterra@gmail.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/test_sysctl.c')
0 files changed, 0 insertions, 0 deletions