Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1315112

Re: [GIT PULL] NVMe changes for 4.5-rc1

From Jens Axboe <axboe@fb.com>
Newsgroups linux.kernel
Subject Re: [GIT PULL] NVMe changes for 4.5-rc1
Date 2016-01-22 17:30 +0100
Message-ID <qTML1-6v3-21@gated-at.bofh.it> (permalink)
References <qTuXM-2zU-5@gated-at.bofh.it> <qTB3e-6EO-75@gated-at.bofh.it> <qTMhZ-62g-17@gated-at.bofh.it> <qTML1-6v3-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 01/22/2016 09:26 AM, Linus Torvalds wrote:
>
> On Jan 22, 2016 7:59 AM, "Jens Axboe" <axboe@fb.com
> <mailto:axboe@fb.com>> wrote:
>  >>
>  >>   - nvme_dev_remove() got renamed to nvme_remove_namespaces(), but also
>  >> lost the "dev" argument (it takes "struct nvme_ctrl *ctrl" now).
>  >
>  > &dev->ctrl
>
> That's not the problem - the code does that already.
>
> But we want the dev argument *back*, since the function now wants to do
> that nvme_io_incapable() check and then cancel the IO on it.
>
> And I didn't know if you guys would want to use container_of() or just
> change the calling convention back to using "dev", or perhaps just
> decide to do the IO cleanup in the caller instead. That last option
> seems the cleanest, since now nvme_dev_remove_namespaces() is just about
> the namespace, and maybe it would be better to re-introduce a whole new
> nvme_dev_remove() that does the old thing.

The latter is the cleanest approach, we'll get it fixed up.

> So I decided to not do anything at all, and just let you guys sorry it
> out instead.

Is that like a Canadian duel?

-- 
Jens Axboe

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[GIT PULL] NVMe changes for 4.5-rc1 Jens Axboe <axboe@fb.com> - 2016-01-21 22:30 +0100
  Re: [GIT PULL] NVMe changes for 4.5-rc1 Linus Torvalds <torvalds@linux-foundation.org> - 2016-01-22 05:00 +0100
    Re: [GIT PULL] NVMe changes for 4.5-rc1 Jens Axboe <axboe@fb.com> - 2016-01-22 17:00 +0100
      Re: [GIT PULL] NVMe changes for 4.5-rc1 Jens Axboe <axboe@fb.com> - 2016-01-22 17:30 +0100

csiph-web