[dm-devel] [PATCH] RFC: dm: avoid the mutex lock in dm_bufio_shrink_count()

David Rientjes rientjes at google.com
Tue Nov 29 00:56:18 UTC 2016


On Wed, 23 Nov 2016, Mikulas Patocka wrote:

> From: Mikulas Patocka <mpatocka at redhat.com>
> 
> dm-bufio: don't take the lock in dm_bufio_shrink_count
> 
> dm_bufio_shrink_count is called from do_shrink_slab to find out how many
> freeable objects are there. The reported value doesn't have to be precise,
> so we don't need to take the dm-bufio lock.
> 
> Signed-off-by: Mikulas Patocka <mpatocka at redhat.com>

Acked-by: David Rientjes <rientjes at google.com>




More information about the dm-devel mailing list