The patch titled Subject: rapidio/idt_gen2: fix locking warning has been added to the -mm tree. Its filename is rapidio-idt_gen2-fix-locking-warning.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/rapidio-idt_gen2-fix-locking-warning.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/rapidio-idt_gen2-fix-locking-warning.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Alexandre Bounine <alexandre.bounine@xxxxxxx> Subject: rapidio/idt_gen2: fix locking warning Fix lockdep warning during device probing: move sysfs initialization out of code protected by a spin lock. Link: http://lkml.kernel.org/r/1469125134-16523-10-git-send-email-alexandre.bounine@xxxxxxx Signed-off-by: Alexandre Bounine <alexandre.bounine@xxxxxxx> Cc: Matt Porter <mporter@xxxxxxxxxxxxxxxxxxx> Cc: Andre van Herk <andre.van.herk@xxxxxxxxxxxxxxxxxxxxxxxxx> Cc: Barry Wood <barry.wood@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/rapidio/switches/idt_gen2.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff -puN drivers/rapidio/switches/idt_gen2.c~rapidio-idt_gen2-fix-locking-warning drivers/rapidio/switches/idt_gen2.c --- a/drivers/rapidio/switches/idt_gen2.c~rapidio-idt_gen2-fix-locking-warning +++ a/drivers/rapidio/switches/idt_gen2.c @@ -436,10 +436,11 @@ static int idtg2_probe(struct rio_dev *r RIO_STD_RTE_DEFAULT_PORT, IDT_NO_ROUTE); } + spin_unlock(&rdev->rswitch->lock); + /* Create device-specific sysfs attributes */ idtg2_sysfs(rdev, true); - spin_unlock(&rdev->rswitch->lock); return 0; } @@ -452,11 +453,9 @@ static void idtg2_remove(struct rio_dev return; } rdev->rswitch->ops = NULL; - + spin_unlock(&rdev->rswitch->lock); /* Remove device-specific sysfs attributes */ idtg2_sysfs(rdev, false); - - spin_unlock(&rdev->rswitch->lock); } static struct rio_device_id idtg2_id_table[] = { _ Patches currently in -mm which might be from alexandre.bounine@xxxxxxx are rapidio-add-rapidio-channelized-messaging-driver.patch rapidio-documentation-fix-mangled-paragraph-in-mport_cdev.patch rapidio-fix-return-value-description-for-dma_prep-functions.patch rapidio-tsi721_dma-add-channel-mask-and-queue-size-parameters.patch rapidio-tsi721-add-pcie-mrrs-override-parameter.patch rapidio-tsi721-add-messaging-mbox-selector-parameter.patch rapidio-tsi721_dma-advance-queue-processing-from-transfer-submit-call.patch rapidio-fix-error-handling-in-mbox-request-release-functions.patch rapidio-idt_gen2-fix-locking-warning.patch rapidio-change-inbound-window-size-type-to-u64.patch rapidio-modify-for-rev3-specification-changes.patch powerpc-fsl_rio-apply-changes-for-rio-spec-rev-3.patch rapidio-switches-add-driver-for-idt-gen3-switches.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html