--- - branch: netbsd-10 date: Thu Apr 18 18:24:31 UTC 2024 files: - new: 1.189.4.1 old: '1.189' path: src/sys/dev/ccd.c pathrev: src/sys/dev/ccd.c@1.189.4.1 type: modified id: 20240418T182431Z.a051f0f1973fd3f189a2951da1c72b1cc65f0ba1 log: "Pull up following revision(s) (requested by hannken in ticket #669):\n\n\tsys/dev/ccd.c: revision 1.190\n\nUsing a ccd(4) with GPT (dk* at ccd*) the disk framework will call\nccdstrategy() -> ccdstart() -> ccdbuffer() from softint context.\n\nAllocating the buffer with PR_WAITOK here is forbidden.\n\nChange ccdstart() / ccdbuffer() to report failure back to caller and\npass PR_WAITOK / PR_NOWAIT as an additional argument.\n\nCall ccdstart() with PR_NOPWAIT from ccdstrategy() and on error defer\nto the kthread. Call ccdstart() with PR_WAITOK from kthread so requests\nfrom kthread always succeed to allocate the buffers.\n\nRemove the (non working) throttling on low memory as it is no longer needed.\n\nFixes PR kern/58043 \"kernel crash in assert_sleepable() in -current,\ndk(4) driver?\"\n" module: src subject: 'CVS commit: [netbsd-10] src/sys/dev' unixtime: '1713464671' user: martin