[Xen-devel] [PATCH v14 5/5] xen/blkback: Consistently insert one empty line between functions

2020-01-27 Thread sjpark
From: SeongJae Park The number of empty lines between functions in the xenbus.c is inconsistent. This trivial style cleanup commit fixes the file to consistently place only one empty line. Acked-by: Roger Pau Monné Signed-off-by: SeongJae Park --- drivers/block/xen-blkback/xenbus.c | 7

[Xen-devel] [PATCH v14 2/5] xenbus/backend: Protect xenbus callback with lock

2020-01-27 Thread sjpark
From: SeongJae Park A driver's 'reclaim_memory' callback can race with 'probe' or 'remove' because it will be called whenever memory pressure is detected. To avoid such race, this commit embeds a spinlock in each 'xenbus_device' and make 'xenbus' to hold the lock while the corresponded

[Xen-devel] [PATCH v14 4/5] xen/blkback: Remove unnecessary static variable name prefixes

2020-01-27 Thread sjpark
From: SeongJae Park A few of static variables in blkback have 'xen_blkif_' prefix, though it is unnecessary for static variables. This commit removes such prefixes. Reviewed-by: Roger Pau Monné Signed-off-by: SeongJae Park --- drivers/block/xen-blkback/blkback.c | 37

[Xen-devel] [PATCH v14 0/5] xenbus/backend: Add memory pressure handler callback

2020-01-27 Thread sjpark
From: SeongJae Park Granting pages consumes backend system memory. In systems configured with insufficient spare memory for those pages, it can cause a memory pressure situation. However, finding the optimal amount of the spare memory is challenging for large systems having dynamic resource

[Xen-devel] [PATCH v14 1/5] xenbus/backend: Add memory pressure handler callback

2020-01-27 Thread sjpark
From: SeongJae Park Granting pages consumes backend system memory. In systems configured with insufficient spare memory for those pages, it can cause a memory pressure situation. However, finding the optimal amount of the spare memory is challenging for large systems having dynamic resource

[Xen-devel] [PATCH v14 3/5] xen/blkback: Squeeze page pools if a memory pressure is detected

2020-01-27 Thread sjpark
From: SeongJae Park Each `blkif` has a free pages pool for the grant mapping. The size of the pool starts from zero and is increased on demand while processing the I/O requests. If current I/O requests handling is finished or 100 milliseconds has passed since last I/O requests handling, it

Re: [Xen-devel] [PATCH v2 1/1] xen/blkback: Aggressively shrink page pools if a memory pressure is detected

2019-12-05 Thread sjpark
On 05.12.19 16:09, SeongJae Park wrote: > From: SeongJae Park > > Each `blkif` has a free pages pool for the grant mapping. The size of > the pool starts from zero and be increased on demand while processing > the I/O requests. If current I/O requests handling is finished or 100 > milliseconds

Re: [Xen-devel] [PATCH v2 0/1] xen/blkback: Aggressively shrink page pools if a memory pressure is detected

2019-12-05 Thread sjpark
On 05.12.19 16:09, SeongJae Park wrote: > Each `blkif` has a free pages pool for the grant mapping. The size of > the pool starts from zero and be increased on demand while processing > the I/O requests. If current I/O requests handling is finished or 100 > milliseconds has passed since last I/O

Re: [Xen-devel] [PATCH 0/2] xen/blkback: Aggressively shrink page pools if a memory pressure is detected

2019-12-04 Thread sjpark
On 04.12.19 12:52, Durrant, Paul wrote: >> -Original Message- >> From: Xen-devel On Behalf Of >> SeongJae Park >> Sent: 04 December 2019 11:34 >> To: konrad.w...@oracle.com; roger@citrix.com; ax...@kernel.dk >> Cc: sj38.p...@gmail.com; xen-devel@lists.xenproject.org; linux- >>

Re: [Xen-devel] [PATCH] xen/blkback: Avoid unmapping unmapped grant pages

2019-12-03 Thread sjpark
On 27.11.19 10:13, Roger Pau Monné wrote: > On Tue, Nov 26, 2019 at 04:36:05PM +0100, SeongJae Park wrote: >> From: SeongJae Park >> >> For each I/O request, blkback first maps the foreign pages for the >> request to its local pages. If an allocation of a local page for the >> mapping fails, it