[GIT PULL] Core block IO bits for 4.3

From: Jens Axboe
Date: Wed Sep 02 2015 - 12:47:50 EST


Hi Linus,

First pull request for 4.3, the core part of the block IO changes. This
pull request contains:

- Cleanup of the bio IO error signaling from Christoph. We used to rely
on the uptodate bit and passing around of an error, now we store the
error in the bio itself.

- Improvement of the above from myself, by shrinking the bio size down
again to fit in two cachelines on x86-64.

- Revert of the max_hw_sectors cap removal from a revision again, from
Jeff Moyer. This caused performance regressions in various tests.
Reinstate the limit, bump it to a more reasonable size instead.

- Make /sys/block/<dev>/queue/discard_max_bytes writeable, by me. Most
devices have huge trim limits, which can cause nasty latencies when
deleting files. Enable the admin to configure the size down. We will
look into having a more sane default instead of UINT_MAX sectors.

- Improvement of the SGP gaps logic from Keith Busch.

- Enable the block core to handle arbitrarily sized bios, which enables
a nice simplification of bio_add_page() (which is an IO hot path).
From Kent.

- Improvements to the partition io stats accounting, making it faster.
From Ming Lei.

- Also from Ming Lei, a basic fixup for overflow of the sysfs pending
file in blk-mq, as well as a fix for a blk-mq timeout race condition.

- Ming Lin has been carrying Kents above mentioned patches forward for a
while, and testing them. Ming also did a few fixes around that.

- Sasha Levin found and fixed a use-after-free problem introduced by the
bio->bi_error changes from Christoph.

- Small blk cgroup cleanup from Viresh Kumar.


Please pull!


git://git.kernel.dk/linux-block.git for-4.3/core


----------------------------------------------------------------
Christoph Hellwig (1):
block: add a bi_error field to struct bio

Dongsu Park (1):
Documentation: update notes in biovecs about arbitrarily sized bios

Jeff Moyer (2):
Revert "block: remove artifical max_hw_sectors cap"
block: bump BLK_DEF_MAX_SECTORS to 2560

Jens Axboe (4):
block: have drivers use blk_queue_max_discard_sectors()
block: make /sys/block/<dev>/queue/discard_max_bytes writeable
block: manipulate bio->bi_flags through helpers
block: shrink struct bio down to 2 cache lines again

Keith Busch (2):
block: Replace SG_GAPS with new queue limits mask
blk: Fix bio_io_vec index when checking bvec gaps

Kent Overstreet (8):
block: make generic_make_request handle arbitrarily sized bios
block: simplify bio_add_page()
bcache: remove driver private bio splitting code
btrfs: remove bio splitting and merge_bvec_fn() calls
md/raid5: get rid of bio_fits_rdev()
block: kill merge_bvec_fn() completely
fs: use helper bio_add_page() instead of open coding on bi_io_vec
block: remove bio_get_nr_vecs()

Ming Lei (4):
block: partition: introduce hd_free_part()
block: partition: convert percpu ref
blk-mq: fix buffer overflow when reading sysfs file of 'pending'
blk-mq: fix race between timeout and freeing request

Ming Lin (2):
block: remove split code in blkdev_issue_{discard,write_same}
md/raid5: split bio for chunk_aligned_read

Sasha Levin (1):
block: don't access bio->bi_error after bio_put()

Viresh Kumar (1):
blk-cgroup: Drop unlikely before IS_ERR(_OR_NULL)

Documentation/block/biodoc.txt | 2 +-
Documentation/block/biovecs.txt | 10 +-
Documentation/block/queue-sysfs.txt | 10 +-
arch/m68k/emu/nfblock.c | 2 +-
arch/powerpc/sysdev/axonram.c | 2 +-
arch/xtensa/platforms/iss/simdisk.c | 12 +-
block/bio-integrity.c | 11 +-
block/bio.c | 212 ++++++++++------------------
block/blk-core.c | 36 ++---
block/blk-flush.c | 15 +-
block/blk-lib.c | 77 ++++------
block/blk-map.c | 4 +-
block/blk-merge.c | 169 ++++++++++++++++++----
block/blk-mq-sysfs.c | 25 +++-
block/blk-mq-tag.c | 4 +-
block/blk-mq-tag.h | 12 ++
block/blk-mq.c | 26 ++--
block/blk-settings.c | 44 +++---
block/blk-sysfs.c | 43 +++++-
block/blk.h | 6 +
block/bounce.c | 29 ++--
block/genhd.c | 9 +-
block/partition-generic.c | 12 +-
drivers/block/aoe/aoeblk.c | 2 +-
drivers/block/aoe/aoecmd.c | 10 +-
drivers/block/aoe/aoedev.c | 2 +-
drivers/block/brd.c | 15 +-
drivers/block/drbd/drbd_actlog.c | 4 +-
drivers/block/drbd/drbd_bitmap.c | 19 +--
drivers/block/drbd/drbd_int.h | 12 +-
drivers/block/drbd/drbd_main.c | 1 -
drivers/block/drbd/drbd_nl.c | 4 +-
drivers/block/drbd/drbd_req.c | 47 ++----
drivers/block/drbd/drbd_worker.c | 44 ++----
drivers/block/floppy.c | 7 +-
drivers/block/loop.c | 4 +-
drivers/block/nbd.c | 2 +-
drivers/block/null_blk.c | 2 +-
drivers/block/nvme-core.c | 4 +-
drivers/block/pktcdvd.c | 59 +++-----
drivers/block/ps3vram.c | 5 +-
drivers/block/rbd.c | 49 +------
drivers/block/rsxx/dev.c | 11 +-
drivers/block/skd_main.c | 2 +-
drivers/block/umem.c | 6 +-
drivers/block/xen-blkback/blkback.c | 4 +-
drivers/block/xen-blkfront.c | 9 +-
drivers/block/zram/zram_drv.c | 9 +-
drivers/md/bcache/bcache.h | 18 ---
drivers/md/bcache/btree.c | 10 +-
drivers/md/bcache/closure.h | 2 +-
drivers/md/bcache/io.c | 101 +------------
drivers/md/bcache/journal.c | 12 +-
drivers/md/bcache/movinggc.c | 8 +-
drivers/md/bcache/request.c | 43 +++---
drivers/md/bcache/super.c | 48 ++-----
drivers/md/bcache/util.h | 5 +-
drivers/md/bcache/writeback.c | 14 +-
drivers/md/dm-bio-prison.c | 6 +-
drivers/md/dm-bufio.c | 26 ++--
drivers/md/dm-cache-target.c | 45 ++----
drivers/md/dm-crypt.c | 26 +---
drivers/md/dm-era-target.c | 15 --
drivers/md/dm-flakey.c | 18 +--
drivers/md/dm-io.c | 8 +-
drivers/md/dm-linear.c | 16 ---
drivers/md/dm-log-writes.c | 27 +---
drivers/md/dm-raid.c | 19 ---
drivers/md/dm-raid1.c | 24 ++--
drivers/md/dm-snap.c | 21 +--
drivers/md/dm-stripe.c | 23 +--
drivers/md/dm-table.c | 21 ---
drivers/md/dm-thin.c | 72 +++-------
drivers/md/dm-verity.c | 25 +---
drivers/md/dm-zero.c | 2 +-
drivers/md/dm.c | 144 ++-----------------
drivers/md/dm.h | 2 -
drivers/md/faulty.c | 4 +-
drivers/md/linear.c | 45 +-----
drivers/md/md.c | 46 ++----
drivers/md/md.h | 12 --
drivers/md/multipath.c | 33 +----
drivers/md/raid0.c | 58 +-------
drivers/md/raid0.h | 2 -
drivers/md/raid1.c | 115 ++++-----------
drivers/md/raid10.c | 182 ++++--------------------
drivers/md/raid5.c | 147 ++++++++-----------
drivers/mmc/card/queue.c | 2 +-
drivers/mtd/mtd_blkdevs.c | 2 +-
drivers/nvdimm/blk.c | 5 +-
drivers/nvdimm/btt.c | 5 +-
drivers/nvdimm/pmem.c | 2 +-
drivers/s390/block/dcssblk.c | 4 +-
drivers/s390/block/xpram.c | 5 +-
drivers/scsi/sd.c | 4 +-
drivers/staging/lustre/lustre/llite/lloop.c | 2 +
drivers/target/target_core_iblock.c | 21 +--
drivers/target/target_core_pscsi.c | 6 +-
fs/btrfs/check-integrity.c | 10 +-
fs/btrfs/compression.c | 29 ++--
fs/btrfs/disk-io.c | 35 ++---
fs/btrfs/extent_io.c | 39 ++---
fs/btrfs/inode.c | 53 +++----
fs/btrfs/raid56.c | 62 ++++----
fs/btrfs/scrub.c | 40 ++----
fs/btrfs/volumes.c | 95 ++-----------
fs/buffer.c | 13 +-
fs/direct-io.c | 18 +--
fs/ext4/page-io.c | 18 +--
fs/ext4/readpage.c | 8 +-
fs/f2fs/data.c | 12 +-
fs/gfs2/lops.c | 19 +--
fs/gfs2/ops_fstype.c | 6 +-
fs/jfs/jfs_logmgr.c | 22 ++-
fs/jfs/jfs_metapage.c | 8 +-
fs/logfs/dev_bdev.c | 16 +--
fs/mpage.c | 8 +-
fs/nfs/blocklayout/blocklayout.c | 14 +-
fs/nilfs2/segbuf.c | 7 +-
fs/ocfs2/cluster/heartbeat.c | 9 +-
fs/xfs/xfs_aops.c | 8 +-
fs/xfs/xfs_buf.c | 7 +-
include/linux/bio.h | 38 +++--
include/linux/blk-cgroup.h | 2 +-
include/linux/blk_types.h | 10 +-
include/linux/blkdev.h | 36 +++--
include/linux/device-mapper.h | 4 -
include/linux/genhd.h | 33 +++--
include/linux/swap.h | 4 +-
kernel/power/swap.c | 12 +-
kernel/trace/blktrace.c | 10 +-
mm/page_io.c | 20 ++-
132 files changed, 1197 insertions(+), 2136 deletions(-)

--
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/