niverse.0xinfinity.dev/distro/kernel/atom?h=linux-rolling-lts
2025-06-08T07:07:37Ztreewide, timers: Rename from_timer() to timer_container_of()2025-06-08T07:07:37ZIngo Molnarmingo@kernel.org2025-05-09T05:51:14Zurn:sha1:41cb08555c4164996d67c78b3bf1c658075b75f1
Move this API to the canonical timer_*() namespace.
[ tglx: Redone against pre rc1 ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/aB2X0jCKQO56WdMt@gmail.com
dm-mirror: fix a tiny race condition2025-06-03T17:01:23ZMikulas Patockampatocka@redhat.com2025-06-03T16:53:17Zurn:sha1:829451beaed6165eb11d7a9fb4e28eb17f489980
There's a tiny race condition in dm-mirror. The functions queue_bio and
write_callback grab a spinlock, add a bio to the list, drop the spinlock
and wake up the mirrord thread that processes bios in the list.
It may be possible that the mirrord thread processes the bio just after
spin_unlock_irqrestore is called, before wakeup_mirrord. This spurious
wake-up is normally harmless, however if the device mapper device is
unloaded just after the bio was processed, it may be possible that
wakeup_mirrord(ms) uses invalid "ms" pointer.
Fix this bug by moving wakeup_mirrord inside the spinlock.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
treewide: Switch/rename to timer_delete[_sync]()2025-04-05T08:30:12ZThomas Gleixnertglx@linutronix.de2025-04-05T08:17:26Zurn:sha1:8fa7292fee5c5240402371ea89ab285ec856c916
timer_delete[_sync]() replaces del_timer[_sync](). Convert the whole tree
over and remove the historical wrapper inlines.
Conversion was done with coccinelle plus manual fixups where necessary.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
dm-mirror: Support atomic writes2025-01-17T21:24:11ZJohn Garryjohn.g.garry@oracle.com2025-01-16T17:03:01Zurn:sha1:6845de78ae3701ed19619cf786695072c73b8e92
Support atomic writes by setting DM_TARGET_ATOMIC_WRITES for the target
type, and also unmasking REQ_ATOMIC from the submitted bio op flags.
Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>