Re: [PATCH 2/2 v6] loop: Limit the number of requests in the bio list

2012-11-30 Thread Jeff Moyer
Lukas Czerner writes: > Currently there is not limitation of number of requests in the loop bio > list. This can lead into some nasty situations when the caller spawns > tons of bio requests taking huge amount of memory. This is even more > obvious with discard where blkdev_issue_discard() will s

[PATCH 2/2 v6] loop: Limit the number of requests in the bio list

2012-11-30 Thread Lukas Czerner
Currently there is not limitation of number of requests in the loop bio list. This can lead into some nasty situations when the caller spawns tons of bio requests taking huge amount of memory. This is even more obvious with discard where blkdev_issue_discard() will submit all bios for the range and