summaryrefslogtreecommitdiff
path: root/fs/inode.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-11-13 02:09:25 (GMT)
committerDavid S. Miller <davem@davemloft.net>2007-11-13 02:09:25 (GMT)
commit62768e28d606c10ba54217f908123de34dad9374 (patch)
treee245674de36746c80ec9ddd62e821d2244fbea5b /fs/inode.c
parentcd228d5458186f66bc36c4884f4f26ed955c5945 (diff)
downloadlinux-fsl-qoriq-62768e28d606c10ba54217f908123de34dad9374.tar.xz
[SUNGEM]: Fix suspend regression due to NAPI changes.
Commit bea3348e (the NAPI changes) made sungem unconditionally enable NAPI when resuming and unconditionally disable when suspending, this, however, makes napi_disable() hang when suspending when the interface was taken down before suspend because taking the interface down also disables NAPI. This patch makes touching the napi struct in suspend/resume code paths depend on having the interface up, thereby fixing the hang on suspend. The patch also moves the napi_disable() in gem_close() under the lock so that the NAPI state is always modified atomically together with the "opened" variable. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/inode.c')
0 files changed, 0 insertions, 0 deletions