Re: [PATCH v2 0/2] Fix a race condition related to creation of /dev/nvme0n<x>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/13/2018 07:25 PM, Bart Van Assche wrote:
Hello Jens,

The two patches in this series fix a race condition related to the creation of
the sysfs attributes for the /dev/nvme0n<x> devices nodes. I encountered this
race while adding tests to the blktests project for the NVMeOF kernel
drivers. Please consider these patches for the upstream kernel.

Thanks,

Bart.

Bart Van Assche (2):
   block: Introduce alloc_disk_node_attr()
   nvme: Fix race conditions related to creation of /dev/nvme0n<x>

  block/genhd.c                | 26 ++++++++++++++++++++++++--
  drivers/nvme/host/core.c     | 17 +++++------------
  drivers/nvme/host/lightnvm.c | 34 +++++++---------------------------
  drivers/nvme/host/nvme.h     |  9 ++++-----
  include/linux/genhd.h        | 13 +++++++++++--
  5 files changed, 51 insertions(+), 48 deletions(-)

I have fixed the very same thing with my patchset titled "genhd: register default groups with device_add_disk" which is waiting for inclusion.

Cheers,

Hannes



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux