summaryrefslogtreecommitdiff
path: root/drivers/net/sunlance.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-01-31 01:12:06 +0300
committerDavid S. Miller <davem@davemloft.net>2009-01-31 01:13:49 +0300
commit905db44087855e3c1709f538ecdc22fd149cadd8 (patch)
tree645708af472fd26bb73b5cd6abe10640322a3b93 /drivers/net/sunlance.c
parent1974cc205e63cec4a17a6b3fca31fa4240ded77e (diff)
downloadlinux-905db44087855e3c1709f538ecdc22fd149cadd8.tar.xz
packet: Avoid lock_sock in mmap handler
As the mmap handler gets called under mmap_sem, and we may grab mmap_sem elsewhere under the socket lock to access user data, we should avoid grabbing the socket lock in the mmap handler. Since the only thing we care about in the mmap handler is for pg_vec* to be invariant, i.e., to exclude packet_set_ring, we can achieve this by simply using a new mutex. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Tested-by: Martin MOKREJŠ <mmokrejs@ribosome.natur.cuni.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sunlance.c')
0 files changed, 0 insertions, 0 deletions