> #define kmap_atomic(page,idx) ctx_sw_off(); kmap(page); > #define kunmap_atomic(page,idx) ctx_sw_on(); kunmap(page); > No. kmap_atomic is called from interrupt context, and kmap calls schedule(). I thought about the attached patch (completely untested). -- Manfred