]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: lpfc: Convert debugfs directory counts from atomic to unsigned int
authorJustin Tee <justin.tee@broadcom.com>
Mon, 15 Sep 2025 18:08:09 +0000 (11:08 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Sep 2025 02:20:00 +0000 (22:20 -0400)
commita045ae21ce3e3411ac38ff2f9051792585f444d7
tree16463bedbbf139a3c4f7c0d205642db9008b0433
parent8221b3450501c7cdc93be1eb65a6fe0dcfb4b538
scsi: lpfc: Convert debugfs directory counts from atomic to unsigned int

Atomicity is not necessary for debugfs directory accounting because
vport deletion and creation is already serialized.  Creation has always
been serialized through sysfs.  Deletion is serialized via walking the
lpfc_create_vport_work_array and calling fc_vport_terminate one-by-one
for each NPIV port.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Closes: https://lore.kernel.org/linux-fsdevel/20250702212917.GK3406663@ZenIV/
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Message-ID: <20250915180811.137530-13-justintee8345@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc.h
drivers/scsi/lpfc/lpfc_debugfs.c