]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
firewire: sbp2: replace a GFP_ATOMIC allocation
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 4 Mar 2012 13:23:00 +0000 (14:23 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 10 Mar 2012 16:41:19 +0000 (17:41 +0100)
commitc13ccfcf66b2e70f8d01f7fe7e1e20ba60e733e1
tree82b06c527c5d514a64a9d95bbc1390100d00bdad
parent6503de65459da619d3ade0824c9cc17ea0a57141
firewire: sbp2: replace a GFP_ATOMIC allocation

sbp2_send_management_orb() is called by sbp2_login, sbp2_reconnect, and
sbp2_remove, all which are able to sleep during memory allocations.
Actually, sbp2_send_management_orb() itself is a sleeping function.

Login and remove could allocate with GFP_KERNEL but reconnect needs
GFP_NOIO to ensure progress in low memory situations.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/sbp2.c