Kent Overstreet 20d0189b10 block: Introduce new bio_split()
The new bio_split() can split arbitrary bios - it's not restricted to
single page bios, like the old bio_split() (previously renamed to
bio_pair_split()). It also has different semantics - it doesn't allocate
a struct bio_pair, leaving it up to the caller to handle completions.

Then convert the existing bio_pair_split() users to the new bio_split()
- and also nvme, which was open coding bio splitting.

(We have to take that BUG_ON() out of bio_integrity_trim() because this
bio_split() needs to use it, and there's no reason it has to be used on
bios marked as cloned; BIO_CLONED doesn't seem to have clearly
documented semantics anyways.)

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Matthew Wilcox <matthew.r.wilcox@intel.com>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Neil Brown <neilb@suse.de>
2013-11-23 22:33:57 -08:00
..
2013-10-24 23:43:27 -04:00
2013-11-23 22:33:47 -08:00
2013-11-13 12:09:12 +09:00
2013-11-23 22:33:47 -08:00
2013-11-23 22:33:47 -08:00
2013-11-23 22:33:47 -08:00
2013-11-23 22:33:47 -08:00
2013-10-27 16:27:07 -07:00
2013-11-23 22:33:47 -08:00
2013-11-23 22:33:47 -08:00
2013-09-16 18:20:25 -07:00
2013-11-23 22:33:47 -08:00
2013-11-23 22:33:47 -08:00
2013-11-23 22:33:47 -08:00
2013-11-09 00:16:32 -05:00
2013-11-23 22:33:47 -08:00
2013-11-22 08:42:14 -08:00
2013-10-24 23:34:54 -04:00
2013-11-23 22:33:56 -08:00
2013-11-23 22:33:57 -08:00
2013-09-13 23:06:40 -04:00
2013-11-23 22:33:47 -08:00
2013-10-24 23:34:54 -04:00
2013-11-23 22:33:47 -08:00
2013-09-10 18:56:31 -04:00
2013-10-24 23:34:54 -04:00
2013-11-09 00:16:20 -05:00
2013-10-24 23:34:54 -04:00
2013-11-09 00:16:19 -05:00
2013-11-23 22:33:47 -08:00
2013-11-09 00:16:19 -05:00
2013-10-24 23:35:00 -04:00
2013-10-24 23:34:54 -04:00
2013-10-24 23:34:54 -04:00
2013-10-24 23:34:54 -04:00
2013-11-09 00:16:31 -05:00
2013-11-09 00:16:20 -05:00