Skip to content

Commit

Permalink
Merge branch 'nvme-4.15' of git://git.infradead.org/nvme into for-4.1…
Browse files Browse the repository at this point in the history
…5/block

Pull NVMe changes from Christoph:

"Below are the currently queue nvme updates for Linux 4.15.  There are
a few more things that could make it for this merge window, but I'd
like to get things into linux-next, especially for the unlikely case
that Linus decided to cut -rc8.

Highlights:
 - support for SGLs in the PCIe driver (Chaitanya Kulkarni)
 - disable I/O schedulers for the admin queue (Israel Rukshin)
 - various Fibre Channel fixes and enhancements (James Smart)
 - various refactoring for better code sharing between transports
   (Sagi Grimberg and me)

as well as lots of little bits from various contributors."
  • Loading branch information
Jens Axboe committed Nov 3, 2017
2 parents 474f5da + a806c6c commit 3e2cb3a
Show file tree
Hide file tree
Showing 15 changed files with 1,026 additions and 503 deletions.
11 changes: 5 additions & 6 deletions block/blk-mq-tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ void blk_mq_tagset_busy_iter(struct blk_mq_tag_set *tagset,
}
EXPORT_SYMBOL(blk_mq_tagset_busy_iter);

int blk_mq_reinit_tagset(struct blk_mq_tag_set *set,
int (reinit_request)(void *, struct request *))
int blk_mq_tagset_iter(struct blk_mq_tag_set *set, void *data,
int (fn)(void *, struct request *))
{
int i, j, ret = 0;

if (WARN_ON_ONCE(!reinit_request))
if (WARN_ON_ONCE(!fn))
goto out;

for (i = 0; i < set->nr_hw_queues; i++) {
Expand All @@ -316,8 +316,7 @@ int blk_mq_reinit_tagset(struct blk_mq_tag_set *set,
if (!tags->static_rqs[j])
continue;

ret = reinit_request(set->driver_data,
tags->static_rqs[j]);
ret = fn(data, tags->static_rqs[j]);
if (ret)
goto out;
}
Expand All @@ -326,7 +325,7 @@ int blk_mq_reinit_tagset(struct blk_mq_tag_set *set,
out:
return ret;
}
EXPORT_SYMBOL_GPL(blk_mq_reinit_tagset);
EXPORT_SYMBOL_GPL(blk_mq_tagset_iter);

void blk_mq_queue_tag_busy_iter(struct request_queue *q, busy_iter_fn *fn,
void *priv)
Expand Down
4 changes: 4 additions & 0 deletions drivers/nvme/Kconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
menu "NVME Support"

source "drivers/nvme/host/Kconfig"
source "drivers/nvme/target/Kconfig"

endmenu
Loading

0 comments on commit 3e2cb3a

Please sign in to comment.