]> git.baikalelectronics.ru Git - kernel.git/commit
dm: limit the max bio size as BIO_MAX_PAGES * PAGE_SIZE
authorMing Lei <ming.lei@redhat.com>
Mon, 18 Dec 2017 12:22:08 +0000 (20:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 6 Jan 2018 16:18:00 +0000 (09:18 -0700)
commit86ced6648f43ecf29507a542bffa11cd5d5c3288
tree271cef801d2e2757eed59270948993b65ae10d06
parent43c1cd05f2fce5045f9b4f03f0aea380a8cdb76c
dm: limit the max bio size as BIO_MAX_PAGES * PAGE_SIZE

For BIO based DM, some targets aren't ready for dealing with bigger
incoming bio than 1Mbyte, such as crypt target.

Cc: Mike Snitzer <snitzer@redhat.com>
Cc:dm-devel@redhat.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm.c