aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-host-common.c
diff options
context:
space:
mode:
authorJia-Ju Bai <[email protected]>2018-04-09 14:31:19 +0000
committerJan Kara <[email protected]>2018-04-09 15:48:54 +0000
commit1aa3b3e0cbdb32439f04842e88fc7557a0777660 (patch)
tree1c49cc6fd8d4af5b2c3bb22acb4d9f55f82eb513 /drivers/pci/controller/pci-host-common.c
parentfanotify: fix logic of events on child (diff)
downloadkernel-1aa3b3e0cbdb32439f04842e88fc7557a0777660.tar.gz
kernel-1aa3b3e0cbdb32439f04842e88fc7557a0777660.zip
fs: quota: Replace GFP_ATOMIC with GFP_KERNEL in dquot_init
dquot_init() is never called in atomic context. This function is only set as a parameter of fs_initcall(). Despite never getting called from atomic context, dquot_init() calls __get_free_pages() with GFP_ATOMIC, which waits busily for allocation. GFP_ATOMIC is not necessary and can be replaced with GFP_KERNEL, to avoid busy waiting and improve the possibility of sucessful allocation. This is found by a static analysis tool named DCNS written by myself. And I also manually check it. Signed-off-by: Jia-Ju Bai <[email protected]> Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions