Subject: + memorystick-rtsx-add-cancel_work-when-remove-driver.patch added to -mm tree To: micky_ching@xxxxxxxxxxxxxx,gregkh@xxxxxxxxxxxxxxxxxxx,maximlevitsky@xxxxxxxxx,oakad@xxxxxxxxx,rogerable@xxxxxxxxxxx,sameo@xxxxxxxxxxxxxxx,wei_wang@xxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Thu, 12 Jun 2014 14:44:41 -0700 The patch titled Subject: drivers/memstick/host/rtsx_pci_ms.c: add cancel_work when remove driver has been added to the -mm tree. Its filename is memorystick-rtsx-add-cancel_work-when-remove-driver.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/memorystick-rtsx-add-cancel_work-when-remove-driver.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/memorystick-rtsx-add-cancel_work-when-remove-driver.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: Micky Ching <micky_ching@xxxxxxxxxxxxxx> Subject: drivers/memstick/host/rtsx_pci_ms.c: add cancel_work when remove driver Add cancel_work_sync() in rtsx_pci_ms_drv_remove() to cancel pending request work when removing the driver. Signed-off-by: Micky Ching <micky_ching@xxxxxxxxxxxxxx> Cc: Samuel Ortiz <sameo@xxxxxxxxxxxxxxx> says: Cc: Maxim Levitsky <maximlevitsky@xxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: Alex Dubov <oakad@xxxxxxxxx> Cc: Roger Tseng <rogerable@xxxxxxxxxxx> Cc: Wei WANG <wei_wang@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/memstick/host/rtsx_pci_ms.c | 1 + 1 file changed, 1 insertion(+) diff -puN drivers/memstick/host/rtsx_pci_ms.c~memorystick-rtsx-add-cancel_work-when-remove-driver drivers/memstick/host/rtsx_pci_ms.c --- a/drivers/memstick/host/rtsx_pci_ms.c~memorystick-rtsx-add-cancel_work-when-remove-driver +++ a/drivers/memstick/host/rtsx_pci_ms.c @@ -601,6 +601,7 @@ static int rtsx_pci_ms_drv_remove(struct pcr->slots[RTSX_MS_CARD].card_event = NULL; msh = host->msh; host->eject = true; + cancel_work_sync(&host->handle_req); mutex_lock(&host->host_mutex); if (host->req) { _ Patches currently in -mm which might be from micky_ching@xxxxxxxxxxxxxx are origin.patch memorystick-rtsx-add-cancel_work-when-remove-driver.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