Linux kernel source tree
Go to file
Ming Lei 65f666c620 lib/sbitmap: define swap_lock as raw_spinlock_t
When called from sbitmap_queue_get(), sbitmap_deferred_clear() may be run
with preempt disabled. In RT kernel, spin_lock() can sleep, then warning
of "BUG: sleeping function called from invalid context" can be triggered.

Fix it by replacing it with raw_spin_lock.

Cc: Yang Yang <yang.yang@vivo.com>
Fixes: 72d04bdcf3 ("sbitmap: fix io hung due to race on sbitmap_word::cleared")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Yang Yang <yang.yang@vivo.com>
Link: https://lore.kernel.org/r/20240919021709.511329-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-09-20 00:20:06 -06:00
arch Do not always honor guest PAT on CPUs that support self-snoop. 2024-09-15 09:35:50 +02:00
block block: Remove unused blk_limits_io_{min,opt} 2024-09-20 00:19:48 -06:00
certs
crypto
Documentation There is a recently notified BT regression with no fix yet. I 2024-09-12 12:45:24 -07:00
drivers drbd: Fix atomicity violation in drbd_uuid_set_bm() 2024-09-18 04:16:23 -06:00
fs Linux 6.11 2024-09-17 08:32:53 -06:00
include lib/sbitmap: define swap_lock as raw_spinlock_t 2024-09-20 00:20:06 -06:00
init
io_uring io_uring/kbuf: return correct iovec count from classic buffer peek 2024-08-30 10:45:54 -06:00
ipc
kernel workqueue: Fixes for v6.11-rc7 2024-09-12 13:11:10 -07:00
lib lib/sbitmap: define swap_lock as raw_spinlock_t 2024-09-20 00:20:06 -06:00
LICENSES
mm Linux 6.11 2024-09-17 08:32:53 -06:00
net net: netfilter: move nf flowtable bpf initialization in nf_flow_table_module_init() 2024-09-12 15:41:03 +02:00
rust rust: macros: provide correct provenance when constructing THIS_MODULE 2024-09-02 09:14:28 +02:00
samples
scripts scripts: fix gfp-translate after ___GFP_*_BITS conversion to an enum 2024-09-01 17:59:01 -07:00
security Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging 2024-09-01 09:18:48 +12:00
sound sound fixes for 6.11 2024-09-14 11:54:24 +02:00
tools There is a recently notified BT regression with no fix yet. I 2024-09-12 12:45:24 -07:00
usr
virt
.clang-format
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap sound fixes for 6.11 2024-09-14 11:54:24 +02:00
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS Linux 6.11 2024-09-17 08:32:53 -06:00
Makefile Linux 6.11 2024-09-15 16:57:56 +02:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the reStructuredText markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.