Re: [PATCH v4 12/16] powerpc/pseries/vas: Setup IRQ and fault handling

2021-06-02 Thread Nicholas Piggin
Excerpts from Haren Myneni's message of May 21, 2021 7:39 pm: > > NX generates an interrupt when sees a fault on the user space > buffer and the hypervisor forwards that interrupt to OS. Then > the kernel handles the interrupt by issuing H_GET_NX_FAULT hcall > to retrieve the fault CRB information

Re: [PATCH 0/5] DMA fixes for PS3 device drivers

2021-06-02 Thread Michael Ellerman
Geoff Levand writes: > Hi, > > This is a set of patches that fix various DMA related problems in the PS3 > device drivers, and add better error checking and improved message logging. > > The gelic network driver had a number of problems and most of the changes are > in it's sources. > > Please con

Re: [PATCH] powerpc/stacktrace: fix raise_backtrace_ipi() logic

2021-06-02 Thread Michael Ellerman
Nathan Lynch writes: > Hi Michael, > > Michael Ellerman writes: >> Nathan Lynch writes: >>> When smp_send_safe_nmi_ipi() indicates that the target CPU has >>> responded to the IPI, skip the remote paca inspection >>> fallback. Otherwise both the sending and target CPUs attempt the >>> backtrace,

Re: [PATCH v4 14/16] crypto/nx: Register and unregister VAS interface

2021-06-02 Thread Nicholas Piggin
Excerpts from Haren Myneni's message of May 21, 2021 7:41 pm: > > Changes to create /dev/crypto/nx-gzip interface with VAS register > and to remove this interface with VAS unregister. > Could you include why the change is done, or what goes wrong without it? Thanks, Nick > Signed-off-by: Haren

Re: [PATCH v4 16/16] crypto/nx: Add sysfs interface to export NX capabilities

2021-06-02 Thread Nicholas Piggin
Excerpts from Haren Myneni's message of May 21, 2021 7:42 pm: > > Changes to export the following NXGZIP capabilities through sysfs: > > /sys/devices/vio/ibm,compression-v1/NxGzCaps: Where's the horrible camel case name coming from? PowerVM? Thanks, Nick > min_compress_len /*Recommended minim

Re: [PATCH v4 07/16] powerpc/pseries/vas: Define VAS/NXGZIP HCALLs and structs

2021-06-02 Thread Nicholas Piggin
Excerpts from Haren Myneni's message of May 21, 2021 7:34 pm: > > This patch adds HCALLs and other definitions. Also define structs > that are used in VAS implementation on powerVM. > > Signed-off-by: Haren Myneni > --- > arch/powerpc/include/asm/hvcall.h| 7 ++ > arch/powerpc/include/asm

Re: [PATCH v4 06/16] powerpc/vas: Define and use common vas_window struct

2021-06-02 Thread Nicholas Piggin
Excerpts from Haren Myneni's message of May 21, 2021 7:33 pm: > > Same vas_window struct is used on powerNV and pseries. So this patch > changes in struct vas_window to support both platforms and also the > corresponding modifications in powerNV vas code. > > On powerNV, vas_window is used for bo

Re: [PATCH v4 05/16] powerpc/vas: Move update_csb/dump_crb to common book3s platform

2021-06-02 Thread Nicholas Piggin
Excerpts from Haren Myneni's message of May 21, 2021 7:32 pm: > + > + pid = task_ref->pid; > + tsk = get_pid_task(pid, PIDTYPE_PID); > + /* > + * Process closes send window after all pending NX requests are > + * completed. In multi-thread applications, a child thread can > +

Re: [PATCH v4 04/16] powerpc/vas: Create take/drop pid and mm references

2021-06-02 Thread Nicholas Piggin
Excerpts from Haren Myneni's message of May 21, 2021 7:31 pm: > > Take pid and mm references when each window opens and drops during > close. This functionality is needed for powerNV and pseries. So > this patch defines the existing code as functions in common book3s > platform vas-api.c > > Sign

Re: [PATCH v4 03/16] powerpc/vas: Add platform specific user window operations

2021-06-02 Thread Nicholas Piggin
Excerpts from Haren Myneni's message of May 21, 2021 7:30 pm: > > PowerNV uses registers to open/close VAS windows, and getting the > paste address. Whereas the hypervisor calls are used on PowerVM. > > This patch adds the platform specific user space window operations > and register with the com

Re: [PATCH v4 01/16] powerpc/vas: Move VAS API to book3s common platform

2021-06-02 Thread Nicholas Piggin
Excerpts from Haren Myneni's message of May 21, 2021 7:28 pm: > > Using the same /dev/crypto/nx-gzip interface for both powerNV and > pseries. So this patch creates platforms/book3s/ and moves VAS API > to that directory. The actual functionality is not changed. > > Signed-off-by: Haren Myneni >

Re: [PATCH 20/30] nullb: use blk_mq_alloc_disk

2021-06-02 Thread Chaitanya Kulkarni
On 6/1/21 23:56, Christoph Hellwig wrote: > Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and > request_queue allocation. > > Signed-off-by: Christoph Hellwig > --- > drivers/block/null_blk/main.c | 11 +-- > 1 file changed, 5 insertions(+), 6 deletions(-) > > diff --

Re: [PATCH 18/30] loop: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Chaitanya Kulkarni
On 6/1/21 23:56, Christoph Hellwig wrote: > Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and > request_queue allocation. > > Signed-off-by: Christoph Hellwig Looks good. Reviewed-by: Chaitanya Kulkarni

Re: [PATCH 15/30] blk-mq: remove blk_mq_init_sq_queue

2021-06-02 Thread Chaitanya Kulkarni
On 6/1/21 23:55, Christoph Hellwig wrote: > All users are gone now. > > Signed-off-by: Christoph Hellwig Looks good. Reviewed-by: Chaitanya Kulkarni

Re: [PATCH 03/30] blk-mq: add the blk_mq_alloc_disk APIs

2021-06-02 Thread Chaitanya Kulkarni
On 6/1/21 23:54, Christoph Hellwig wrote: > Add a new API to allocate a gendisk including the request_queue for use > with blk-mq based drivers. This is to avoid boilerplate code in drivers. > > Signed-off-by: Christoph Hellwig This would be a nice API to get rid of the couple initialization cal

Re: [PATCH] powerpc/8xx: select CPM1 for MPC8XXFADS

2021-06-02 Thread Tom Rix
On 6/2/21 12:44 AM, Christophe Leroy wrote: Le 01/06/2021 à 19:53, t...@redhat.com a écrit : From: Tom Rix With MPC8XXFADS, there is this linker error ppc64-linux-ld: m8xx_setup.o: in function `cpm_cascade': m8xx_setup.c: undefined reference to `cpm_get_irq' It looks like this config ite

Re: [PATCH] KVM: PPC: Book3S HV: Fix TLB management on SMT8 POWER9 and POWER10 processors

2021-06-02 Thread Fabiano Rosas
Nicholas Piggin writes: > From: Suraj Jitindar Singh > > The POWER9 vCPU TLB management code assumes all threads in a core share > a TLB, and that TLBIEL execued by one thread will invalidate TLBs for > all threads. This is not the case for SMT8 capable POWER9 and POWER10 > (big core) processors

Re: [PATCH] powerpc/stacktrace: fix raise_backtrace_ipi() logic

2021-06-02 Thread Nathan Lynch
Hi Michael, Michael Ellerman writes: > Nathan Lynch writes: >> When smp_send_safe_nmi_ipi() indicates that the target CPU has >> responded to the IPI, skip the remote paca inspection >> fallback. Otherwise both the sending and target CPUs attempt the >> backtrace, usually creating a misleading (

Re: [RFC PATCH 0/7] Memory hotplug/hotremove at subsection size

2021-06-02 Thread Zi Yan
On 10 May 2021, at 10:36, Zi Yan wrote: > On 7 May 2021, at 10:00, David Hildenbrand wrote: > >> On 07.05.21 13:55, Michal Hocko wrote: >>> [I haven't read through respective patches due to lack of time but let >>> me comment on the general idea and the underlying justification] >>> >>> On Thu 0

Re: [PATCH v2] lockdown,selinux: avoid bogus SELinux lockdown permission checks

2021-06-02 Thread Paul Moore
On Wed, Jun 2, 2021 at 8:40 AM Daniel Borkmann wrote: > On 6/1/21 10:47 PM, Paul Moore wrote: > > The thing I'm worried about would be the case where a LSM policy > > change requires that an existing BPF program be removed or disabled. > > I'm guessing based on the refcounting that there is not pr

Re: [RFC PATCH 1/6] trace/stack: Move code to save the stack trace into a separate function

2021-06-02 Thread Steven Rostedt
On Wed, 02 Jun 2021 16:05:18 +0530 "Naveen N. Rao" wrote: > It seems to be working fine otherwise. The one limitation though is down > to how ftrace works on powerpc -- the mcount call is before a function > sets up its own stackframe. Due to this, we won't ever be able to > account for the st

Re: [PATCH 4/9] m68k: remove support for DISCONTIGMEM

2021-06-02 Thread Mike Rapoport
On Wed, Jun 02, 2021 at 01:25:24PM +0200, Geert Uytterhoeven wrote: > Hi Mike, > > On Wed, Jun 2, 2021 at 12:54 PM Mike Rapoport wrote: > > From: Mike Rapoport > > > > DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map > > in v5.11. > > > > Remove the support for DISCONTI

Re: [PATCH v2] lockdown,selinux: avoid bogus SELinux lockdown permission checks

2021-06-02 Thread Ondrej Mosnacek
On Fri, May 28, 2021 at 3:37 AM Paul Moore wrote: > On Mon, May 17, 2021 at 5:22 AM Ondrej Mosnacek wrote: > > > > Commit 59438b46471a ("security,lockdown,selinux: implement SELinux > > lockdown") added an implementation of the locked_down LSM hook to > > SELinux, with the aim to restrict which d

Re: [PATCH v2] lockdown,selinux: avoid bogus SELinux lockdown permission checks

2021-06-02 Thread Daniel Borkmann
On 6/1/21 10:47 PM, Paul Moore wrote: On Mon, May 31, 2021 at 4:24 AM Daniel Borkmann wrote: On 5/29/21 8:48 PM, Paul Moore wrote: [...] Daniel's patch side steps that worry by just doing the lockdown permission check when the BPF program is loaded, but that isn't a great solution if the polic

Re: [PATCH 27/30] scm_blk: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Niklas Schnelle
On Wed, 2021-06-02 at 09:53 +0300, Christoph Hellwig wrote: > Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and > request_queue allocation. > > Signed-off-by: Christoph Hellwig > --- > drivers/s390/block/scm_blk.c | 21 ++--- > 1 file changed, 6 insertions(+)

Re: [FSL P50x0] KVM HV doesn't work anymore

2021-06-02 Thread Christian Zigotzky
On 20 May 2021 at 01:07am, Nicholas Piggin wrote: Hmm, okay that probably rules out those notifier changes then. Can you remind me were you able to rule these out as suspects? 8f6cc75a97d1 powerpc: move norestart trap flag to bit 0 8dc7f0229b78 powerpc: remove partial register save logic c45ba4f

Re: [PATCH 4/9] m68k: remove support for DISCONTIGMEM

2021-06-02 Thread Geert Uytterhoeven
Hi Mike, On Wed, Jun 2, 2021 at 12:54 PM Mike Rapoport wrote: > From: Mike Rapoport > > DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map > in v5.11. > > Remove the support for DISCONTIGMEM entirely. > > Signed-off-by: Mike Rapoport Thanks for your patch! Reviewed-by:

Re: [PATCH] powerpc/stacktrace: fix raise_backtrace_ipi() logic

2021-06-02 Thread Michael Ellerman
Nathan Lynch writes: > When smp_send_safe_nmi_ipi() indicates that the target CPU has > responded to the IPI, skip the remote paca inspection > fallback. Otherwise both the sending and target CPUs attempt the > backtrace, usually creating a misleading ("didn't respond to backtrace > IPI" is wrong)

[PATCH 9/9] mm: replace CONFIG_FLAT_NODE_MEM_MAP with CONFIG_FLATMEM

2021-06-02 Thread Mike Rapoport
From: Mike Rapoport After removal of the DISCONTIGMEM memory model the FLAT_NODE_MEM_MAP configuration option is equivalent to FLATMEM. Drop CONFIG_FLAT_NODE_MEM_MAP and use CONFIG_FLATMEM instead. Signed-off-by: Mike Rapoport --- include/linux/mmzone.h | 4 ++-- kernel/crash_core.c| 2 +-

[PATCH 8/9] mm: replace CONFIG_NEED_MULTIPLE_NODES with CONFIG_NUMA

2021-06-02 Thread Mike Rapoport
From: Mike Rapoport After removal of DISCINTIGMEM the NEED_MULTIPLE_NODES and NUMA configuration options are equivalent. Drop CONFIG_NEED_MULTIPLE_NODES and use CONFIG_NUMA instead. Done with $ sed -i 's/CONFIG_NEED_MULTIPLE_NODES/CONFIG_NUMA/' \ $(git grep -wl CONFIG_N

[PATCH 7/9] docs: remove description of DISCONTIGMEM

2021-06-02 Thread Mike Rapoport
From: Mike Rapoport Remove description of DISCONTIGMEM from the "Memory Models" document and update VM sysctl description so that it won't mention DISCONIGMEM. Signed-off-by: Mike Rapoport --- Documentation/admin-guide/sysctl/vm.rst | 12 +++ Documentation/vm/memory-model.rst | 45 ++

[PATCH 6/9] arch, mm: remove stale mentions of DISCONIGMEM

2021-06-02 Thread Mike Rapoport
From: Mike Rapoport There are several places that mention DISCONIGMEM in comments or have stale code guarded by CONFIG_DISCONTIGMEM. Remove the dead code and update the comments. Signed-off-by: Mike Rapoport --- arch/ia64/kernel/topology.c | 5 ++--- arch/ia64/mm/numa.c | 5 ++

[PATCH 5/9] mm: remove CONFIG_DISCONTIGMEM

2021-06-02 Thread Mike Rapoport
From: Mike Rapoport There are no architectures that support DISCONTIGMEM left. Remove the configuration option and the dead code it was guarding in the generic memory management code. Signed-off-by: Mike Rapoport --- include/asm-generic/memory_model.h | 37 -- incl

[PATCH 4/9] m68k: remove support for DISCONTIGMEM

2021-06-02 Thread Mike Rapoport
From: Mike Rapoport DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map in v5.11. Remove the support for DISCONTIGMEM entirely. Signed-off-by: Mike Rapoport --- arch/m68k/Kconfig.cpu | 10 -- arch/m68k/include/asm/page.h| 2 +- arch/m68k/include/a

[PATCH 3/9] arc: remove support for DISCONTIGMEM

2021-06-02 Thread Mike Rapoport
From: Mike Rapoport DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map in v5.11. Remove the support for DISCONTIGMEM entirely. Signed-off-by: Mike Rapoport --- arch/arc/Kconfig | 13 arch/arc/include/asm/mmzone.h | 40 -

[PATCH 2/9] arc: update comment about HIGHMEM implementation

2021-06-02 Thread Mike Rapoport
From: Mike Rapoport Arc does not use DISCONTIGMEM to implement high memory, update the comment describing how high memory works to reflect this. Signed-off-by: Mike Rapoport --- arch/arc/mm/init.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/arch/arc/mm/ini

[PATCH 1/9] alpha: remove DISCONTIGMEM and NUMA

2021-06-02 Thread Mike Rapoport
From: Mike Rapoport NUMA is marked broken on alpha for more than 15 years and DISCONTIGMEM was replaced with SPARSEMEM in v5.11. Remove both NUMA and DISCONTIGMEM support from alpha. Signed-off-by: Mike Rapoport --- arch/alpha/Kconfig| 22 --- arch/alpha/include/asm/machvec.h

[PATCH 0/9] Remove DISCINTIGMEM memory model

2021-06-02 Thread Mike Rapoport
From: Mike Rapoport Hi, SPARSEMEM memory model was supposed to entirely replace DISCONTIGMEM a (long) while ago. The last architectures that used DISCONTIGMEM were updated to use other memory models in v5.11 and it is about the time to entirely remove DISCONTIGMEM from the kernel. This set remo

Re: [RFC PATCH 1/6] trace/stack: Move code to save the stack trace into a separate function

2021-06-02 Thread Naveen N. Rao
Steven Rostedt wrote: On Fri, 21 May 2021 12:18:36 +0530 "Naveen N. Rao" wrote: In preparation to add support for stack tracer to powerpc, move code to save stack trace and to calculate the frame sizes into a separate weak function. Also provide access to some of the data structures used by th

[PATCH 21/21] ide: pmac: Staticise local function 'pmac_ide_probe'

2021-06-02 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/ide/pmac.c:1418:12: warning: no previous prototype for ‘pmac_ide_probe’ [-Wmissing-prototypes] Cc: "David S. Miller" Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linux-...@vger.kernel.org Cc: linuxppc-dev@lis

[PATCH 00/21] Rid W=1 warnings from IDE

2021-06-02 Thread Lee Jones
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings. Lee Jones (21): ide: alim15x3: Document alim15x3_init_one()'s 'id' param ide: ide-dma: Document ide_dma_unmap_sg()'s missing 'cmd' param ide:

Re: [PATCH 23/30] rnbd: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Jinpu Wang
On Wed, Jun 2, 2021 at 8:55 AM Christoph Hellwig wrote: > > Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and > request_queue allocation. > > Signed-off-by: Christoph Hellwig > --- > drivers/block/rnbd/rnbd-clt.c | 35 --- > 1 file changed, 8

Re: [PATCH] powerpc/8xx: select CPM1 for MPC8XXFADS

2021-06-02 Thread Christophe Leroy
Le 01/06/2021 à 19:53, t...@redhat.com a écrit : From: Tom Rix With MPC8XXFADS, there is this linker error ppc64-linux-ld: m8xx_setup.o: in function `cpm_cascade': m8xx_setup.c: undefined reference to `cpm_get_irq' It looks like this config item is stale, it doesn't build any board support

[PATCH 29/30] ataflop: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/ataflop.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/block/ataflop.c b/drivers/block/ataflop.c in

[PATCH 30/30] z2ram: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/z2ram.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c index c1d

[PATCH 28/30] amiflop: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/amiflop.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/block/amiflop.c b/drivers/block/amiflop.c in

[PATCH 27/30] scm_blk: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/s390/block/scm_blk.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/s390/block/scm_blk.c b/drivers/s39

[PATCH 26/30] ubi: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/mtd/ubi/block.c | 68 ++--- 1 file changed, 29 insertions(+), 39 deletions(-) diff --git a/drivers/mtd/ubi/block.c b/

[PATCH 25/30] xen-blkfront: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/xen-blkfront.c | 96 +++- 1 file changed, 39 insertions(+), 57 deletions(-) diff --git a/drivers/block/xen-blkfront

[PATCH 24/30] sx8: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/sx8.c | 23 +++ 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index 2

[PATCH 23/30] rnbd: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/rnbd/rnbd-clt.c | 35 --- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/drivers/block/rnbd/rnbd-clt

[PATCH 22/30] rbd: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/rbd.c | 52 - 1 file changed, 18 insertions(+), 34 deletions(-) diff --git a/drivers/block/rbd.c b/driv

[PATCH 21/30] pd: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/paride/pd.c | 30 -- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/drivers/block/paride/pd.c b/drivers

[PATCH 20/30] nullb: use blk_mq_alloc_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/null_blk/main.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_b

[PATCH 19/30] nbd: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/nbd.c | 53 ++--- 1 file changed, 21 insertions(+), 32 deletions(-) diff --git a/drivers/block/nbd.c b/driv

[PATCH 18/30] loop: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/loop.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 95

[PATCH 17/30] floppy: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/floppy.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c i

[PATCH 16/30] aoe: use blk_mq_alloc_disk and blk_cleanup_disk

2021-06-02 Thread Christoph Hellwig
Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/aoe/aoeblk.c | 33 - drivers/block/aoe/aoedev.c | 3 +-- 2 files changed, 13 insertions(+), 23 deletions(-) diff -

[PATCH 15/30] blk-mq: remove blk_mq_init_sq_queue

2021-06-02 Thread Christoph Hellwig
All users are gone now. Signed-off-by: Christoph Hellwig --- block/blk-mq.c | 22 -- include/linux/blk-mq.h | 4 2 files changed, 26 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 1e6036e6fd66..25e25177c2b1 100644 --- a/block/blk-mq.c +++ b/blo

[PATCH 14/30] gdrom: use blk_mq_alloc_disk

2021-06-02 Thread Christoph Hellwig
Use the blk_mq_alloc_disk API to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/cdrom/gdrom.c | 45 --- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/g

[PATCH 13/30] sunvdc: use blk_mq_alloc_disk

2021-06-02 Thread Christoph Hellwig
Use the blk_mq_alloc_disk API to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/sunvdc.c | 47 -- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/drivers/block/sunvdc.c b/drivers/block/

[PATCH 12/30] swim: use blk_mq_alloc_disk

2021-06-02 Thread Christoph Hellwig
Use the blk_mq_alloc_disk API to simplify the gendisk and request_queue allocation. Signed-off-by: Christoph Hellwig --- drivers/block/swim.c | 34 ++ 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/drivers/block/swim.c b/drivers/block/swim.c index