Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-arm64
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe-arm64
  • Repository

Switch branch/tag
  • ipipe-arm64
  • drivers
  • block
  • nbd.c
Find file BlameHistoryPermalink
  • Pavel Machek's avatar
    nbd: do not allow two clients at the same time · c91192d6
    Pavel Machek authored Jan 15, 2009
    
    
    Two nbd-clients at same time are bad idea, and cause WARN_ON from nbd in
    2.6.28-rc7 from sysfs_add_one.  This simply prevents that from happening.
    
    To reproduce:
    
     cat /dev/zero | head -c 10000000 > /tmp/delme.fstest.fs
     nbd-server 9100 -l /anyone.can.connect > /tmp/delme.fstest.fs &
     sleep 1
     nbd-client localhost 9100 /dev/nd0 &
     nbd-client localhost 9100 /dev/nd0 &
    Signed-off-by: default avatarPavel Machek <pavel@suse.cz>
    Acked-by: default avatarPaul Clements <paul.clements@steeleye.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    c91192d6

Replace nbd.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.

Imprint & Privacy Policy