Skip to content

Instantly share code, notes, and snippets.

Avatar

Luis Chamberlain mcgrof

View GitHub Profile
View for boris example of crappy alternative
diff --git a/arch/x86/include/asm/microcode.h b/arch/x86/include/asm/microcode.h
index ab45a220fac4..d6bfdfb0f0af 100644
--- a/arch/x86/include/asm/microcode.h
+++ b/arch/x86/include/asm/microcode.h
@@ -130,14 +130,11 @@ static inline unsigned int x86_cpuid_family(void)
extern void __init load_ucode_bsp(void);
extern void load_ucode_ap(void);
void reload_early_microcode(void);
-extern bool get_builtin_firmware(struct cpio_data *cd, const char *name);
extern bool initrd_gone;
@mcgrof
mcgrof / gist:316a627218305545fb84f05624973d0b
Created Apr 29, 2021
fix sget / sget_fc thrashing on sb_lock
View gist:316a627218305545fb84f05624973d0b
diff --git a/fs/super.c b/fs/super.c
index 59bbbd8a6..e029eb3f6 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -566,6 +566,7 @@ struct super_block *sget_fc(struct fs_context *fc,
struct user_namespace *user_ns = fc->global ? &init_user_ns : fc->user_ns;
int err;
+ s = alloc_super(fc->fs_type, fc->sb_flags, user_ns);
retry:
View screenshot of blktests watchdog on debian testing
mcgrof@bicho ~/kdevops (git::master)$ ./scripts/workflows/blktests/blktests_watchdog.py hosts baseline
Hostname Test-name Completion % runtime(s) last-runtime(s) Stall-status Kernel
kdevops-blktests-block block/001 3% 1 32.474 OK 5.10.0-3-amd64
kdevops-blktests-loop loop/004 92% 1 1.09 OK 5.10.0-1-amd64
kdevops-blktests-meta None 0% 0 0 OK 5.10.0-3-amd64
kdevops-blktests-nbd nbd/002 63% 2 3.186 OK 5.10.0-1-amd64
kdevops-blktests-nvme nvme/032 36% 2 5.62
@mcgrof
mcgrof / gist:07c77590e89dbab41e6285df836881cd
Created Feb 1, 2021
btrfs/022 kernel warning on fs/btrfs/disk-io.c:4103 close_ctree+0x1b4
View gist:07c77590e89dbab41e6285df836881cd
Jan 30 08:49:42 linux-v510-btrfs-raid56 unknown: run fstests btrfs/022 at 2021-01-30 08:49:42
Jan 30 08:49:43 linux-v510-btrfs-raid56 kernel: BTRFS info (device loop16): disk space caching is enabled
Jan 30 08:49:43 linux-v510-btrfs-raid56 kernel: BTRFS info (device loop16): has skinny extents
Jan 30 08:49:43 linux-v510-btrfs-raid56 kernel: BTRFS info (device loop16): enabling ssd optimizations
Jan 30 08:49:43 linux-v510-btrfs-raid56 kernel: BTRFS: device fsid be492104-d6ea-4014-8537-129e383cc453 devid 1 transid 5 /dev/loop5 scanned by mkfs.btrfs (185786)
Jan 30 08:49:43 linux-v510-btrfs-raid56 kernel: BTRFS info (device loop5): disk space caching is enabled
Jan 30 08:49:43 linux-v510-btrfs-raid56 kernel: BTRFS info (device loop5): has skinny extents
Jan 30 08:49:43 linux-v510-btrfs-raid56 kernel: BTRFS info (device loop5): flagging fs with big metadata feature
Jan 30 08:49:43 linux-v510-btrfs-raid56 kernel: BTRFS info (device loop5): enabling ssd optimizations
Jan 30 08:49:43 linux-v510-btrfs-raid56 kernel:
View gist:ddba5fa50e2eb223cf08cb9b47da5448
mcgrof@gehrke ~/sle-kdevops/kdevops (git::master)$ sudo virsh list --all | grep sles15sp2-xfs-reflin
3 vagrant_sles15sp2-xfs-reflink-normapbt running
8 vagrant_sles15sp2-xfs-reflink-dev running
9 vagrant_sles15sp2-xfs-reflink running
12 vagrant_sles15sp2-xfs-reflink-1024-dev running
14 vagrant_sles15sp2-xfs-reflink-normapbt-dev running
- vagrant_sles15sp2-xfs-reflink-1024 shut off
@mcgrof
mcgrof / join.jpg
Last active Jun 18, 2020
susecan-join
View join.jpg
This is how you join susecan on linux
View gist:598a3174f5a797fce502cdee3bf6e65d
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCzCYKTiJKdluYZDLGi4gRCZhAT27/FT1UEFLolxEbaYO54/1OoRiPicZDiOUuO2TZWnSzViUcHArD+VM9bW9mCW4HhHD0lvWrMA9pjrptuwQgE7UAzvd1QW9Pfn94d5ItM3OklVu0U8QcCl5+h5l2ZXq8F8IDF4nga3MMYQw9FFQcfmlEGpEq32D6T958VhseplKh4crk8ZCk8zIVFjBNqzmiQ968YEK7b8LHYHcl5ZJPT628u76OIfV4oB40shGxDnuMAuXvuaHfdkvN5+VFImdVk5lePd9DMIDyRSOIPjAxnPcyBVc5PHs7/qeDu0dhfxy5XtaYGXm+OZmTC96V+Reiaavc341pPc93tMb2ybWEzTG1VBUkSuF/mnFB6e0mIU57a3ZytPMcZFuy0L3BrTGItARPWohnWs/GU4ix3TsE6hYkcXNpZP75bq+0Eulxtb5MM0xTBX/Rwd4ClBvTIuabpOKz9Q/YBSU7MkU4U4MQmHI1lMJfusFcrdZZP3DM= mcgrof@phoebe
View gist:3819e61038f3caeab8cc6d03fdd7bbbe
LOGFILE=/opt/mail2pgp/procmail.log
SHELL=/bin/bash
VERBOSE=yes
LOGABSTRACT=yes
FORMAIL=/usr/bin/formail
GNUPGHOME=/opt/mail2pgp/.gnupg
:0 H
*
{
View gist:ef483af303c40ff555b39f4de4d4173a
--iy67b7eliunzc2u3
Content-Type: application/pgp-encrypted
Content-Disposition: attachment
Version: 1
--iy67b7eliunzc2u3
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="msg.asc"