| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | | | [SERVER] Handle closeUnusedFd via timer | Simon Rettberg | 2019-08-28 | 2 | -25/+19![]() | |
| | | | | | ||||||
| | * | | | [SERVER] Add timer infrastructure | Simon Rettberg | 2019-08-27 | 2 | -10/+134 | |
| | | | | | | | | | | | | | | | | | To be used by "close unused fd" checks, and others... | |||||
| | * | | | [SERVER] Fix swapped assignment | Simon Rettberg | 2019-08-27 | 1 | -1/+1 | |
| | | | | | ||||||
| | * | | | [SERVER] Use reference counting for uplink | Simon Rettberg | 2019-08-27 | 11 | -140/+311 | |
| | | | | | | | | | | | | | | | | | First step towards less locking for proxy mode | |||||
| | * | | | [SERVER] Fix warnings, simplify locking | Simon Rettberg | 2019-08-26 | 2 | -12/+13 | |
| | | | | | ||||||
| | * | | | [BENCH] Check CMD_GET_BLOCK reply cmd type | Simon Rettberg | 2019-08-23 | 1 | -0/+3 | |
| | | | | | ||||||
| | * | | | [SERVER] Get rid of alt-servers thread, per-uplink rtt history | Simon Rettberg | 2019-08-22 | 9 | -485/+469![]() | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Alt-Server checks are now run using the threadpool, so we don't need a queue and dedicated thread anymore. The rtt history is now kept per uplink, so many uplinks won't overwhelm the history, making its time window very short. Also the fail counter is now split up; a global one for when the server actually isn't reachable, a local (per-uplink) one for when the server is reachable but doesn't serve the requested image. | |||||
| | * | | | [SERVER] Put request handle into CMD_ERROR reply | Simon Rettberg | 2019-08-22 | 1 | -1/+1 | |
| | | | | | ||||||
| | * | | | [SERVER] Add struct representing active connection to uplink server | Simon Rettberg | 2019-08-18 | 5 | -66/+60![]() | |
| | | | | | ||||||
| | * | | | [SERVER] uplink: More consistent type/variable naming | Simon Rettberg | 2019-08-18 | 5 | -288/+294 | |
| | | | | | | | | | | | | | | | | | | | | | * Change link to uplink everywhere * dnbd3_connection_t -> dnbd3_uplink_t | |||||
| | * | | | [SERVER] altservers: Don't run check if <= 1 alt server available | Simon Rettberg | 2019-08-18 | 1 | -4/+11 | |
| | | | | | ||||||
| | * | | | [SERVER] net.c: Minor reordering | Simon Rettberg | 2019-08-18 | 1 | -8/+9 | |
| | | | | | ||||||
| | * | | | [SERVER] Lock free thread pool | Simon Rettberg | 2019-08-16 | 1 | -53/+57 | |
| | | | | | ||||||
| | * | | | [SHARED] Better errno handling in connect() helper | Simon Rettberg | 2019-08-15 | 1 | -0/+8 | |
| | | | | | ||||||
| | * | | | [SERVER] Better lock debugging: Always check lock order | Simon Rettberg | 2019-08-07 | 11 | -226/+198![]() | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Lock order is predefined in locks.h. Immediately bail out if a lock with lower priority is obtained while the same thread already holds one with higher priority. | |||||
| | * | | | [SERVER] Lock-free queue for altservers check thread | Simon Rettberg | 2019-08-07 | 2 | -48/+57 | |
| | | | | | ||||||
| | * | | | [BENCH] Allow specifying request block size | Simon Rettberg | 2019-08-07 | 4 | -19/+32 | |
| | | | | | ||||||
| | * | | | [SERVER] Use more _Atomic | Simon Rettberg | 2019-08-07 | 2 | -5/+4![]() | |
| | | | | | ||||||
| | * | | | [SERVER] Fix race condition and invalid lock order | Simon Rettberg | 2019-08-07 | 1 | -4/+7 | |
| | | | | | ||||||
| | * | | | [SERVER] uplink: Improve attaching to existing requests | Simon Rettberg | 2019-08-06 | 2 | -35/+74 | |
| | | | | | | | | | | | | | | | | | | | | | Allow attaching in ULR_PROCESSING state, leave lower slots empty to increase chances attaching to ULR_PROCESSING. | |||||
| | * | | | [BENCH] Increase timeouts, fix block payload reading | Simon Rettberg | 2019-08-06 | 1 | -3/+3 | |
| | | | | | ||||||
| | * | | | [BENCH] Fix a couple bugs in stress tester | Simon Rettberg | 2019-08-06 | 3 | -82/+70![]() | |
| | | | | | ||||||
| | * | | | [SERVER] Improve debug output if a locked lock gets destroyed | Simon Rettberg | 2019-08-06 | 1 | -0/+1 | |
| | | | | | ||||||
| | * | | | [SERVER] Fix: Client thread could destroy sendMutex while in use | Simon Rettberg | 2019-08-06 | 1 | -0/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix a race condition where the client thread tears down the client struct including the sendMutex while the uplink thead is currently holding the lock, trying to send data to the client. | |||||
| | * | | | [SERVER] Allow uplink shutdown if bgrMinClients > image->users | Simon Rettberg | 2019-08-05 | 1 | -1/+2 | |
| | | | | | ||||||
| | * | | | [SERVER] Add sanity check to threadpool_run for NULL routine | Simon Rettberg | 2019-08-05 | 1 | -0/+4 | |
| | | | | | ||||||
| | * | | | [SERVER] Switch threadpool back to spinlock, add idle thread counter | Simon Rettberg | 2019-08-05 | 1 | -22/+23 | |
| | | | | | ||||||
| | * | | | [SERVER] Atomicize some global flags | Simon Rettberg | 2019-08-03 | 2 | -2/+2 | |
| | | | | | ||||||
| | * | | | [SERVER] Make image->users atomic and get rid of some locking | Simon Rettberg | 2019-08-02 | 2 | -53/+40![]() | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this change it should be safe to read the users count of an image without locking first, assuming you already have a reference on the image or are otherwise sure it cannot be freed, i.e. in an active uplink. Updating users, or checking whether it's 0 in order to free the image should only be done while holding the imageListLock. | |||||
| * | | | | [FUSE] Tweak timeout values to prevent stale status file | Simon Rettberg | 2020-07-24 | 1 | -3/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we cat the stats file right after starting the fuse client, its contents will be cached forever. The exact cause is unknown, since the timeout was specified as one second, but setting it to 0 seems to fix this issue. | |||||
| * | | | | [FUSE] Fix returning pending request on RTT measurement | Simon Rettberg | 2020-07-24 | 3 | -15/+8![]() | |
| | | | | | ||||||
| * | | | | [FUSE] Cleanup | Simon Rettberg | 2020-07-24 | 2 | -33/+24![]() | |
| | | | | | ||||||
| * | | | | [FUSE] Detach old receive thread when creating anew one, update var | Simon Rettberg | 2020-07-24 | 1 | -2/+2 | |
| | | | | | ||||||
| * | | | | [FUSE] Refactor signal handling on termination again | Simon Rettberg | 2020-07-24 | 3 | -60/+55![]() | |
| | | | | | ||||||
| * | | | | [FUSE] Fix inode numbers | Simon Rettberg | 2020-07-24 | 1 | -14/+16 | |
| | | | | | ||||||
| * | | | | [FUSE] Minor cleanup and fixes | Simon Rettberg | 2020-07-21 | 1 | -59/+38![]() | |
| | | | | | ||||||
| * | | | | [SHARED] Fix: connect with timeout returns socket handle on EINPROGRESS | Simon Rettberg | 2020-07-21 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Only if we request non-blocking connect (connect_ms == -1) this function should return a socket fd that is not actually connected. Otherwise, consder this a failure, close the sock fd, and return -1. | |||||
| * | | | | [FUSE] Properly signal worker threads to exit on shutdown | Simon Rettberg | 2020-07-21 | 3 | -24/+70 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Our main signal handler sends SUGHUP to the receiver and background threads, so if they block in some recv() or poll() they will get EINTR and can check keepRunning. | |||||
| * | | | | [FUSE] Formatting | Simon Rettberg | 2020-07-21 | 5 | -180/+183 | |
| | | | | | ||||||
| * | | | | [FUSE] Fix a bunch of warnings | Simon Rettberg | 2020-07-21 | 2 | -8/+11 | |
| | | | | | ||||||
| * | | | | leak fix in main | ln-tech | 2020-01-12 | 3 | -5/+12 | |
| | | | | | ||||||
| * | | | | fixed code: removed useless splicing, code optimization, commandline ↵ | ln-tech | 2020-01-08 | 5 | -119/+31![]() | |
| | | | | | | | | | | | | | | | | | arguments fixed, auto_cache in lowlevel activated, multi and single threaded modes are supported now | |||||
| * | | | | code fixes, keepRunning is back, threads seem to be safe | ln-tech | 2019-11-15 | 4 | -31/+24![]() | |
| | | | | | ||||||
| * | | | | SIGINT fix, Reader-Writer oroblem fix | ln-tech | 2019-11-13 | 4 | -36/+43 | |
| | | | | | ||||||
| * | | | | cleaned code | ln-tech | 2019-10-27 | 3 | -176/+19![]() | |
| | | | | | ||||||
| * | | | | cleaned code and atomic_ints | ln-tech | 2019-10-27 | 0 | -0/+0 | |
| |\ \ \ \ | ||||||
| | * | | | | dnbd3 fuse lowlevel first implementation | ln-tech | 2019-10-22 | 7 | -72/+421 | |
| | | |_|/ | |/| | | ||||||
| * / | | | cleaned code and atomic_ints against | ln-tech | 2019-10-27 | 7 | -72/+421 | |
| |/ / / | ||||||
| * | / | cmake: Try to get include directories right (per target) | Simon Rettberg | 2019-10-07 | 3 | -36/+164 | |
| | |/ |/| | ||||||
| * | | [FUSE] Increase socket timeout from 1 to 3 seconds | Simon Rettberg | 2019-08-28 | 1 | -2/+2 | |
| |/ | ||||||

