lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 5 Jul 2020 21:23:46 -0700 From: Dave Jiang <dave.jiang@...el.com> To: Stephen Rothwell <sfr@...b.auug.org.au>, Vinod Koul <vkoul@...nel.org> Cc: Linux Next Mailing List <linux-next@...r.kernel.org>, Linux Kernel Mailing List <linux-kernel@...r.kernel.org> Subject: Re: linux-next: manual merge of the dmaengine tree with the dmaengine-fixes tree On 7/5/2020 8:56 PM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the dmaengine tree got a conflict in: > > drivers/dma/idxd/sysfs.c > > between commit: > > da32b28c95a7 ("dmaengine: idxd: cleanup workqueue config after disabling") > > from the dmaengine-fixes tree and commit: > > f50b150e315e ("dmaengine: idxd: add work queue drain support") > > from the dmaengine tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. > Hi Stephen. Thanks for the fixup. I think there are two more bits that are needed from f50b150e315e if you don't mind adding: diff --cc drivers/dma/idxd/sysfs.c index 2e2c5082f322,6f0711a822a1..000000000000 --- a/drivers/dma/idxd/sysfs.c +++ b/drivers/dma/idxd/sysfs.c @@@ -313,14 -303,7 +303,12 @@@ static int idxd_config_bus_remove(struc } idxd_unregister_dma_device(idxd); - spin_lock_irqsave(&idxd->dev_lock, flags); rc = idxd_device_disable(idxd); + for (i = 0; i < idxd->max_wqs; i++) { + struct idxd_wq *wq = &idxd->wqs[i]; + > mutex_lock(&wq->wq_lock); + idxd_wq_disable_cleanup(wq); > mutex_unlock(&wq->wq_lock); + } - spin_unlock_irqrestore(&idxd->dev_lock, flags); module_put(THIS_MODULE); if (rc < 0) dev_warn(dev, "Device disable failed\n");
Powered by blists - more mailing lists