nvme: all namespaces in a subsystem must adhere to a common atomic write size
authorAlan Adamson <alan.adamson@oracle.com>
Thu, 8 May 2025 22:38:01 +0000 (15:38 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 14 May 2025 13:18:39 +0000 (15:18 +0200)
commit8695f060a02953b33ac6240895dcb9c7ce16c91c
treefdc39039b7cabba2bfbd9355db0bae0e86b7a103
parenta21675ee3b1ba094e229ae4cd8bddf7d215ab1b9
nvme: all namespaces in a subsystem must adhere to a common atomic write size

The first namespace configured in a subsystem sets the subsystem's
atomic write size based on its AWUPF or NAWUPF. Subsequent namespaces
must have an atomic write size (per their AWUPF or NAWUPF) less than or
equal to the subsystem's atomic write size, or their probing will be
rejected.

Signed-off-by: Alan Adamson <alan.adamson@oracle.com>
[hch: fold in review comments from John Garry]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h