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

2016-11-28 Thread David Rientjes
On Wed, 23 Nov 2016, Mikulas Patocka wrote: > From: Mikulas Patocka > > 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

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

2016-11-17 Thread David Rientjes
On Thu, 17 Nov 2016, Douglas Anderson wrote: > diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c > index b3ba142e59a4..885ba5482d9f 100644 > --- a/drivers/md/dm-bufio.c > +++ b/drivers/md/dm-bufio.c > @@ -89,6 +89,7 @@ struct dm_bufio_client { > > struct list_head lru[LIST_SIZE];