Skip to content

Commit 7dec126

Browse files
committed
Merge remote-tracking branch 'stable/linux-6.9.y' into v6.9+
2 parents a96212c + c8eef17 commit 7dec126

36 files changed

Lines changed: 356 additions & 165 deletions

File tree

Documentation/ABI/stable/sysfs-block

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ Description:
101101
devices that support receiving integrity metadata.
102102

103103

104+
What: /sys/block/<disk>/partscan
105+
Date: May 2024
106+
Contact: Christoph Hellwig <[email protected]>
107+
Description:
108+
The /sys/block/<disk>/partscan files reports if partition
109+
scanning is enabled for the disk. It returns "1" if partition
110+
scanning is enabled, or "0" if not. The value type is a 32-bit
111+
unsigned integer, but only "0" and "1" are valid values.
112+
113+
104114
What: /sys/block/<disk>/<partition>/alignment_offset
105115
Date: April 2009
106116
Contact: Martin K. Petersen <[email protected]>

Documentation/admin-guide/hw-vuln/core-scheduling.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ arg4:
6767
will be performed for all tasks in the task group of ``pid``.
6868

6969
arg5:
70-
userspace pointer to an unsigned long for storing the cookie returned by
71-
``PR_SCHED_CORE_GET`` command. Should be 0 for all other commands.
70+
userspace pointer to an unsigned long long for storing the cookie returned
71+
by ``PR_SCHED_CORE_GET`` command. Should be 0 for all other commands.
7272

7373
In order for a process to push a cookie to, or pull a cookie from a process, it
7474
is required to have the ptrace access mode: `PTRACE_MODE_READ_REALCREDS` to the

Documentation/admin-guide/mm/damon/usage.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Users can write below commands for the kdamond to the ``state`` file.
153153
- ``clear_schemes_tried_regions``: Clear the DAMON-based operating scheme
154154
action tried regions directory for each DAMON-based operation scheme of the
155155
kdamond.
156-
- ``update_schemes_effective_bytes``: Update the contents of
156+
- ``update_schemes_effective_quotas``: Update the contents of
157157
``effective_bytes`` files for each DAMON-based operation scheme of the
158158
kdamond. For more details, refer to :ref:`quotas directory <sysfs_quotas>`.
159159

@@ -342,7 +342,7 @@ Based on the user-specified :ref:`goal <sysfs_schemes_quota_goals>`, the
342342
effective size quota is further adjusted. Reading ``effective_bytes`` returns
343343
the current effective size quota. The file is not updated in real time, so
344344
users should ask DAMON sysfs interface to update the content of the file for
345-
the stats by writing a special keyword, ``update_schemes_effective_bytes`` to
345+
the stats by writing a special keyword, ``update_schemes_effective_quotas`` to
346346
the relevant ``kdamonds/<N>/state`` file.
347347

348348
Under ``weights`` directory, three files (``sz_permil``,
@@ -434,7 +434,7 @@ pages of all memory cgroups except ``/having_care_already``.::
434434
# # further filter out all cgroups except one at '/having_care_already'
435435
echo memcg > 1/type
436436
echo /having_care_already > 1/memcg_path
437-
echo N > 1/matching
437+
echo Y > 1/matching
438438

439439
Note that ``anon`` and ``memcg`` filters are currently supported only when
440440
``paddr`` :ref:`implementation <sysfs_context>` is being used.

Documentation/sphinx/kernel_include.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ def _run(self):
9797
# HINT: this is the only line I had to change / commented out:
9898
#path = utils.relative_path(None, path)
9999

100-
path = nodes.reprunicode(path)
101100
encoding = self.options.get(
102101
'encoding', self.state.document.settings.input_encoding)
103102
e_handler=self.state.document.settings.input_encoding_error_handler

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 6
33
PATCHLEVEL = 9
4-
SUBLEVEL = 1
4+
SUBLEVEL = 2
55
EXTRAVERSION =
66
NAME = Hurr durr I'ma ninja sloth
77

arch/x86/include/asm/percpu.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
unsigned long tcp_ptr__; \
7171
tcp_ptr__ = __raw_cpu_read(, this_cpu_off); \
7272
\
73-
tcp_ptr__ += (unsigned long)(ptr); \
73+
tcp_ptr__ += (__force unsigned long)(ptr); \
7474
(typeof(*(ptr)) __kernel __force *)tcp_ptr__; \
7575
})
7676
#else /* CONFIG_USE_X86_SEG_SUPPORT */
@@ -102,8 +102,8 @@
102102
#endif /* CONFIG_SMP */
103103

104104
#define __my_cpu_type(var) typeof(var) __percpu_seg_override
105-
#define __my_cpu_ptr(ptr) (__my_cpu_type(*ptr) *)(uintptr_t)(ptr)
106-
#define __my_cpu_var(var) (*__my_cpu_ptr(&var))
105+
#define __my_cpu_ptr(ptr) (__my_cpu_type(*ptr)*)(__force uintptr_t)(ptr)
106+
#define __my_cpu_var(var) (*__my_cpu_ptr(&(var)))
107107
#define __percpu_arg(x) __percpu_prefix "%" #x
108108
#define __force_percpu_arg(x) __force_percpu_prefix "%" #x
109109

block/genhd.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,7 @@ int disk_scan_partitions(struct gendisk *disk, blk_mode_t mode)
345345
struct file *file;
346346
int ret = 0;
347347

348-
if (disk->flags & (GENHD_FL_NO_PART | GENHD_FL_HIDDEN))
349-
return -EINVAL;
350-
if (test_bit(GD_SUPPRESS_PART_SCAN, &disk->state))
348+
if (!disk_has_partscan(disk))
351349
return -EINVAL;
352350
if (disk->open_partitions)
353351
return -EBUSY;
@@ -503,8 +501,7 @@ int __must_check device_add_disk(struct device *parent, struct gendisk *disk,
503501
goto out_unregister_bdi;
504502

505503
/* Make sure the first partition scan will be proceed */
506-
if (get_capacity(disk) && !(disk->flags & GENHD_FL_NO_PART) &&
507-
!test_bit(GD_SUPPRESS_PART_SCAN, &disk->state))
504+
if (get_capacity(disk) && disk_has_partscan(disk))
508505
set_bit(GD_NEED_PART_SCAN, &disk->state);
509506

510507
bdev_add(disk->part0, ddev->devt);
@@ -1047,6 +1044,12 @@ static ssize_t diskseq_show(struct device *dev,
10471044
return sprintf(buf, "%llu\n", disk->diskseq);
10481045
}
10491046

1047+
static ssize_t partscan_show(struct device *dev,
1048+
struct device_attribute *attr, char *buf)
1049+
{
1050+
return sprintf(buf, "%u\n", disk_has_partscan(dev_to_disk(dev)));
1051+
}
1052+
10501053
static DEVICE_ATTR(range, 0444, disk_range_show, NULL);
10511054
static DEVICE_ATTR(ext_range, 0444, disk_ext_range_show, NULL);
10521055
static DEVICE_ATTR(removable, 0444, disk_removable_show, NULL);
@@ -1060,6 +1063,7 @@ static DEVICE_ATTR(stat, 0444, part_stat_show, NULL);
10601063
static DEVICE_ATTR(inflight, 0444, part_inflight_show, NULL);
10611064
static DEVICE_ATTR(badblocks, 0644, disk_badblocks_show, disk_badblocks_store);
10621065
static DEVICE_ATTR(diskseq, 0444, diskseq_show, NULL);
1066+
static DEVICE_ATTR(partscan, 0444, partscan_show, NULL);
10631067

10641068
#ifdef CONFIG_FAIL_MAKE_REQUEST
10651069
ssize_t part_fail_show(struct device *dev,
@@ -1106,6 +1110,7 @@ static struct attribute *disk_attrs[] = {
11061110
&dev_attr_events_async.attr,
11071111
&dev_attr_events_poll_msecs.attr,
11081112
&dev_attr_diskseq.attr,
1113+
&dev_attr_partscan.attr,
11091114
#ifdef CONFIG_FAIL_MAKE_REQUEST
11101115
&dev_attr_fail.attr,
11111116
#endif

block/partitions/core.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -573,10 +573,7 @@ static int blk_add_partitions(struct gendisk *disk)
573573
struct parsed_partitions *state;
574574
int ret = -EAGAIN, p;
575575

576-
if (disk->flags & GENHD_FL_NO_PART)
577-
return 0;
578-
579-
if (test_bit(GD_SUPPRESS_PART_SCAN, &disk->state))
576+
if (!disk_has_partscan(disk))
580577
return 0;
581578

582579
state = check_partition(disk);

drivers/android/binder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5367,7 +5367,7 @@ static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
53675367
goto err;
53685368
break;
53695369
case BINDER_SET_MAX_THREADS: {
5370-
int max_threads;
5370+
u32 max_threads;
53715371

53725372
if (copy_from_user(&max_threads, ubuf,
53735373
sizeof(max_threads))) {

drivers/android/binder_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ struct binder_proc {
421421
struct list_head todo;
422422
struct binder_stats stats;
423423
struct list_head delivered_death;
424-
int max_threads;
424+
u32 max_threads;
425425
int requested_threads;
426426
int requested_threads_started;
427427
int tmp_ref;

0 commit comments

Comments
 (0)