Re: [PATCH v4] block: make sure big bio is splitted into at most 256 bvecs

2016-08-24 Thread Jens Axboe
On 08/23/2016 07:49 AM, Ming Lei wrote: After arbitrary bio size is supported, the incoming bio may be very big. We have to split the bio into small bios so that each holds at most BIO_MAX_PAGES bvecs for safety reason, such as bio_clone(). This patch fixes the following kernel crash: [

Re: [PATCH v4] block: make sure big bio is splitted into at most 256 bvecs

2016-08-24 Thread Jens Axboe
On 08/23/2016 07:49 AM, Ming Lei wrote: After arbitrary bio size is supported, the incoming bio may be very big. We have to split the bio into small bios so that each holds at most BIO_MAX_PAGES bvecs for safety reason, such as bio_clone(). This patch fixes the following kernel crash: [

Re: [PATCH v4] block: make sure big bio is splitted into at most 256 bvecs

2016-08-24 Thread Kent Overstreet
On Tue, Aug 23, 2016 at 09:49:45PM +0800, Ming Lei wrote: > After arbitrary bio size is supported, the incoming bio may > be very big. We have to split the bio into small bios so that > each holds at most BIO_MAX_PAGES bvecs for safety reason, such > as bio_clone(). > > This patch fixes the

Re: [PATCH v4] block: make sure big bio is splitted into at most 256 bvecs

2016-08-24 Thread Kent Overstreet
On Tue, Aug 23, 2016 at 09:49:45PM +0800, Ming Lei wrote: > After arbitrary bio size is supported, the incoming bio may > be very big. We have to split the bio into small bios so that > each holds at most BIO_MAX_PAGES bvecs for safety reason, such > as bio_clone(). > > This patch fixes the

[PATCH v4] block: make sure big bio is splitted into at most 256 bvecs

2016-08-23 Thread Ming Lei
After arbitrary bio size is supported, the incoming bio may be very big. We have to split the bio into small bios so that each holds at most BIO_MAX_PAGES bvecs for safety reason, such as bio_clone(). This patch fixes the following kernel crash: > [ 172.660142] BUG: unable to handle kernel NULL

[PATCH v4] block: make sure big bio is splitted into at most 256 bvecs

2016-08-23 Thread Ming Lei
After arbitrary bio size is supported, the incoming bio may be very big. We have to split the bio into small bios so that each holds at most BIO_MAX_PAGES bvecs for safety reason, such as bio_clone(). This patch fixes the following kernel crash: > [ 172.660142] BUG: unable to handle kernel NULL