1. 09 6月, 2017 2 次提交
    • J
      nbd: set sk->sk_sndtimeo for our sockets · dc88e34d
      Josef Bacik 提交于
      If the nbd server stops receiving packets altogether we will get stuck
      waiting for them to receive indefinitely as the tcp buffer will never
      empty, which looks like a deadlock.  Fix this by setting the sk send
      timeout to our configured timeout, that way if the server really
      misbehaves we'll disconnect cleanly instead of waiting forever.
      Reported-by: NDan Melnic <dmm@fb.com>
      Signed-off-by: NJosef Bacik <jbacik@fb.com>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      dc88e34d
    • A
      loop: fix error handling regression · b040ad9c
      Arnd Bergmann 提交于
      gcc points out an unusual indentation:
      
      drivers/block/loop.c: In function 'loop_set_status':
      drivers/block/loop.c:1149:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
         if (figure_loop_size(lo, info->lo_offset, info->lo_sizelimit,
         ^~
      drivers/block/loop.c:1152:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
          goto exit;
      
      This was introduced by a new feature that accidentally moved the opening
      braces from one condition to another. Adding a second pair of braces
      makes it work correctly again and also more readable.
      
      Fixes: f2c6df7d ("loop: support 4k physical blocksize")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      b040ad9c
  2. 08 6月, 2017 2 次提交
  3. 02 6月, 2017 2 次提交
  4. 30 5月, 2017 1 次提交
  5. 16 5月, 2017 1 次提交
  6. 12 5月, 2017 1 次提交
  7. 09 5月, 2017 3 次提交
  8. 04 5月, 2017 18 次提交
  9. 03 5月, 2017 3 次提交
  10. 02 5月, 2017 6 次提交
  11. 28 4月, 2017 1 次提交