* [PATCH 4/5] rsxx: Removing IDA on driver unload.
@ 2013-08-14 21:36 Philip J. Kelleher
0 siblings, 0 replies; only message in thread
From: Philip J. Kelleher @ 2013-08-14 21:36 UTC (permalink / raw)
To: axboe; +Cc: linux-kernel, brking
From: Philip J Kelleher <pjk1939@linux.vnet.ibm.com>
The rsxx driver was not releasing the IDA entry during
driver unload. This would be a big problem on a DLPAR
remove where the card is remove from the LPAR but the
driver is still loaded. This patch fixes that issue.
Signed-off-by: Philip J Kelleher <pjk1939@linux.vnet.ibm.com>
-------------------------------------------------------------------------------
diff -uprN -X linux-block-vanilla/Documentation/dontdiff linux-block-vanilla/drivers/block/rsxx/core.c linux-block/drivers/block/rsxx/core.c
--- linux-block-vanilla/drivers/block/rsxx/core.c 2013-08-12 15:30:57.959857895 -0500
+++ linux-block/drivers/block/rsxx/core.c 2013-08-12 15:31:12.833861866 -0500
@@ -1101,6 +1101,10 @@ static void rsxx_pci_remove(struct pci_d
pci_disable_device(dev);
pci_release_regions(dev);
+ spin_lock(&rsxx_ida_lock);
+ ida_remove(&rsxx_disk_ida, card->disk_id);
+ spin_unlock(&rsxx_ida_lock);
+
kfree(card);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-14 21:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-14 21:36 [PATCH 4/5] rsxx: Removing IDA on driver unload Philip J. Kelleher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®