Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: IBM RamSan 70/80 error message bug fix.

This patch includes a simple change to the rsxx_pci_remove
function that caused error messages because traffic was halted
too early.

Signed-off-by: Philip J Kelleher <pjk1939@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Philip J Kelleher and committed by
Jens Axboe
1ebfd109 9bb3c446

+4 -3
+4 -3
drivers/block/rsxx/core.c
··· 538 538 rsxx_disable_ier_and_isr(card, CR_INTR_EVENT); 539 539 spin_unlock_irqrestore(&card->irq_lock, flags); 540 540 541 - /* Prevent work_structs from re-queuing themselves. */ 542 - card->halt = 1; 543 - 544 541 cancel_work_sync(&card->event_work); 545 542 546 543 rsxx_destroy_dev(card); ··· 546 549 spin_lock_irqsave(&card->irq_lock, flags); 547 550 rsxx_disable_ier_and_isr(card, CR_INTR_ALL); 548 551 spin_unlock_irqrestore(&card->irq_lock, flags); 552 + 553 + /* Prevent work_structs from re-queuing themselves. */ 554 + card->halt = 1; 555 + 549 556 free_irq(dev->irq, card); 550 557 551 558 if (!force_legacy)