]> www.infradead.org Git - nvme.git/commit
nvme: move passthrough logging attribute to head
authorKeith Busch <kbusch@kernel.org>
Tue, 6 Feb 2024 17:47:21 +0000 (09:47 -0800)
committerKeith Busch <kbusch@kernel.org>
Wed, 7 Feb 2024 18:30:47 +0000 (10:30 -0800)
commit1f4137e882c621f8ed4bd4da9b10cf91d059e52a
tree65002e2f74913c511079862ffe69dcf99782a3a4
parentf0377ff97509f5a4921993d5d61da000361bd884
nvme: move passthrough logging attribute to head

The namespace does not have attributes, but the head does. Move the new
logging attribute to that structure instead of dereferencing the wrong
type.

And while we're here, fix the reverse-tree coding style.

Fixes: 9f079dda14339e ("nvme: allow passthru cmd error logging")
Reported-by: Tasmiya Nalatwad <tasmiya@linux.vnet.ibm.com>
Tested-by: Tasmiya Nalatwad <tasmiya@linux.vnet.ibm.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Alan Adamson <alan.adamson@oracle.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/sysfs.c