All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] nvme: fix module ref count Oops
@ 2020-09-16  3:53 Chaitanya Kulkarni
  2020-09-16  3:53 ` [PATCH V2 1/2] nvme-core: fix nvme " Chaitanya Kulkarni
  2020-09-16  3:53 ` [PATCH V2 2/2] nvme: decouple nvme_get_ctrl() from file open Chaitanya Kulkarni
  0 siblings, 2 replies; 9+ messages in thread
From: Chaitanya Kulkarni @ 2020-09-16  3:53 UTC (permalink / raw)
  To: linux-nvme; +Cc: kbusch, hch, Chaitanya Kulkarni, sagi

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 921 bytes --]

Hi,

For nvme-ctrl char device we don't currently get the ctrl's module
refcount. This leads to the Oops. In this series, we get/put the 
module refcount in nvme-ctrl char dev open/release, lift the file
opening from the host-core to caller in the NVMeOF target
passthru and take the ctrl refcount in into the 
nvmet_passthru_ctrl_enable().

-Chaitanya

Changes from V1: -

1. Move last patch to get the module refcount to start of the series.
2. De-couple the module refcount get/put from nvme_dev_open() and
   nvme_dev_release().

Chaitanya Kulkarni (2):
  nvme-core: fix nvme module ref count Oops
  nvme: decouple nvme_get_ctrl() from file open

 drivers/nvme/host/core.c       | 28 +++++++++++++++++-----------
 drivers/nvme/host/nvme.h       |  2 +-
 drivers/nvme/target/nvmet.h    |  1 +
 drivers/nvme/target/passthru.c | 19 +++++++++++++++----
 4 files changed, 34 insertions(+), 16 deletions(-)

-- 
2.22.1



[-- Attachment #2: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-09-16 16:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-16  3:53 [PATCH V2 0/2] nvme: fix module ref count Oops Chaitanya Kulkarni
2020-09-16  3:53 ` [PATCH V2 1/2] nvme-core: fix nvme " Chaitanya Kulkarni
2020-09-16  6:47   ` Christoph Hellwig
2020-09-16 15:58   ` Logan Gunthorpe
2020-09-16 16:01     ` Christoph Hellwig
2020-09-16  3:53 ` [PATCH V2 2/2] nvme: decouple nvme_get_ctrl() from file open Chaitanya Kulkarni
2020-09-16  6:52   ` Christoph Hellwig
2020-09-16  6:54     ` Christoph Hellwig
2020-09-16 16:07     ` Logan Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.