Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1485708
| From | Alexander Gordeev <agordeev@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 10/14] blk-mq: Uninit hardware context in order reverse to init |
| Date | 2016-09-18 09:40 +0200 |
| Message-ID | <siERH-5bE-1@gated-at.bofh.it> (permalink) |
| References | <siERH-5bE-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
CC: linux-block@vger.kernel.org
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
---
block/blk-mq.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index cd32a08..c589096 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -2013,12 +2013,13 @@ static void blk_mq_realloc_hw_ctxs(struct blk_mq_tag_set *set,
struct blk_mq_hw_ctx *hctx = hctxs[j];
if (hctx) {
+ kobject_put(&hctx->kobj);
+
if (hctx->tags) {
blk_mq_free_rq_map(set, hctx->tags, j);
set->tags[j] = NULL;
}
blk_mq_exit_hctx(q, set, hctx, j);
- kobject_put(&hctx->kobj);
hctxs[j] = NULL;
}
}
--
1.8.3.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 10/14] blk-mq: Uninit hardware context in order reverse to init Alexander Gordeev <agordeev@redhat.com> - 2016-09-18 09:40 +0200 Re: [PATCH 10/14] blk-mq: Uninit hardware context in order reverse to init Omar Sandoval <osandov@osandov.com> - 2016-09-19 20:00 +0200
csiph-web