1. 03 8月, 2020 7 次提交
  2. 30 7月, 2020 1 次提交
    • J
      Merge branch 'nvme-5.9' of git://git.infradead.org/nvme into for-5.9/drivers · a9e8e18a
      Jens Axboe 提交于
      Pull NVMe updates from Christoph.
      
      * 'nvme-5.9' of git://git.infradead.org/nvme: (30 commits)
        nvme-loop: remove extra variable in create ctrl
        nvme-loop: set ctrl state connecting after init
        nvme-multipath: do not fall back to __nvme_find_path() for non-optimized paths
        nvme-multipath: fix logic for non-optimized paths
        nvme-rdma: fix controller reset hang during traffic
        nvme-tcp: fix controller reset hang during traffic
        nvmet: introduce the passthru Kconfig option
        nvmet: introduce the passthru configfs interface
        nvmet: Add passthru enable/disable helpers
        nvmet: add passthru code to process commands
        nvme: export nvme_find_get_ns() and nvme_put_ns()
        nvme: introduce nvme_ctrl_get_by_path()
        nvme: introduce nvme_execute_passthru_rq to call nvme_passthru_[start|end]()
        nvme: create helper function to obtain command effects
        nvme: clear any SGL flags in passthru commands
        nvmet-fc: remove redundant del_work_active flag
        nvmet-fc: check successful reference in nvmet_fc_find_target_assoc
        nvme-fc: set max_segments to lldd max value
        nvme-fc: drop a duplicated word in a comment
        nvme-hwmon: log the controller device name
        ...
      a9e8e18a
  3. 29 7月, 2020 30 次提交
  4. 28 7月, 2020 1 次提交
  5. 25 7月, 2020 1 次提交
    • C
      bcache: fix bio_{start,end}_io_acct with proper device · a2f32ee8
      Coly Li 提交于
      Commit 85750aeb ("bcache: use bio_{start,end}_io_acct") moves the
      io account code to the location after bio_set_dev(bio, dc->bdev) in
      cached_dev_make_request(). Then the account is performed incorrectly on
      backing device, indeed the I/O should be counted to bcache device like
      /dev/bcache0.
      
      With the mistaken I/O account, iostat does not display I/O counts for
      bcache device and all the numbers go to backing device. In writeback
      mode, the hard drive may have 340K+ IOPS which is impossible and wrong
      for spinning disk.
      
      This patch introduces bch_bio_start_io_acct() and bch_bio_end_io_acct(),
      which switches bio->bi_disk to bcache device before calling
      bio_start_io_acct() or bio_end_io_acct(). Now the I/Os are counted to
      bcache device, and bcache device, cache device and backing device have
      their correct I/O count information back.
      
      Fixes: 85750aeb ("bcache: use bio_{start,end}_io_acct")
      Signed-off-by: NColy Li <colyli@suse.de>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: stable@vger.kernel.org
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      a2f32ee8