early port to kernel 3.10-rc4