Re: MP-safe ifnet with psz & psref

2016-05-11 Thread Ryota Ozaki
On Thu, May 12, 2016 at 11:36 AM, Christos Zoulas wrote: > In article > , > Ryota Ozaki wrote: >>On Wed, May 11, 2016 at 4:18 AM, matthew green wrote: >>> Thor Lancelot Simon writes: I do not think you should do any extra work to support kvm grovelling. >> >>Actually I do nothing other th

Re: MP-safe ifnet with psz & psref

2016-05-11 Thread Christos Zoulas
In article , Ryota Ozaki wrote: >On Wed, May 11, 2016 at 4:18 AM, matthew green wrote: >> Thor Lancelot Simon writes: >>> I do not think you should do any extra work to support kvm grovelling. > >Actually I do nothing other than leaving the original list >as it is. I thinks it's reasonable as wh

Re: MP-safe ifnet with psz & psref

2016-05-11 Thread Christos Zoulas
In article <11591.1462907...@splode.eterna.com.au>, matthew green wrote: >Thor Lancelot Simon writes: >> I do not think you should do any extra work to support kvm grovelling. > >existing tool functionality should not be broken, however. the >netstat -i groveller code should be either updated to

Re: WAPBL not locking enough?

2016-05-11 Thread Taylor R Campbell
Date: Wed, 11 May 2016 11:30:39 + From: co...@sdf.org @@ -1624,6 +1627,9 @@ wapbl_flush(struct wapbl *wl, int waitfor) } error = wapbl_truncate(wl, flushsize); + + mutex_exit(&wl->wl_mtx); + Can't hold wl->wl_mtx across wapbl_truncate -- wapbl_tr

Re: device-major question

2016-05-11 Thread Robert Swindells
Nick Hudson wrote: >On 05/11/16 11:52, Kimihiro Nonaka wrote: >> 2016-05-11 15:41 GMT+09:00 Nick Hudson: >> >>> I'd be happy (as a tegra owner/user) to move hdmicec to 206. I don't think >>> hdmicec is use anywhere else yet. >> char 206 is already used by seeprom. >> >> - sys/conf/majors >> de

Re: device-major question

2016-05-11 Thread Jonathan A. Kollasch
On Wed, May 11, 2016 at 07:53:09AM -0500, Jonathan A. Kollasch wrote: > 210 is AFS_SYSCALL, used by both Arla and OpenAFS. But that's a syscall not a device major.

Re: device-major question

2016-05-11 Thread Jonathan A. Kollasch
210 is AFS_SYSCALL, used by both Arla and OpenAFS. On Wed, May 11, 2016 at 11:58:54AM +0100, Nick Hudson wrote: > On 05/11/16 11:52, Kimihiro Nonaka wrote: > >2016-05-11 15:41 GMT+09:00 Nick Hudson: > > > >>I'd be happy (as a tegra owner/user) to move hdmicec to 206. I don't think > >>hdmicec is u

Re: device-major question

2016-05-11 Thread Nick Hudson
On 05/11/16 11:52, Kimihiro Nonaka wrote: 2016-05-11 15:41 GMT+09:00 Nick Hudson: I'd be happy (as a tegra owner/user) to move hdmicec to 206. I don't think hdmicec is use anywhere else yet. char 206 is already used by seeprom. - sys/conf/majors device-major seeprom char 206 seeprom -

Re: WAPBL not locking enough?

2016-05-11 Thread coypu
How about this change instead? Still going over the rest of the function calls of wapbl_flush. >From d51a64a5e9a15169949b8f1442c79060c157536d Mon Sep 17 00:00:00 2001 From: coypu Date: Wed, 11 May 2016 13:08:06 +0300 Subject: [PATCH 1/2] assert wl_mtx held in wapbl_transaction_len --- sys/kern/

Re: device-major question

2016-05-11 Thread SODA Noriyuki
There are two points which need to be clarified. 1) The conf/majors files contains the following comment: # Majors 160-255 are used for the MI drivers. This "255" has to be changed, because the majors.storage file is already using 332. What is the new limit for MI drivers? 1023?

Re: device-major question

2016-05-11 Thread Kimihiro Nonaka
2016-05-11 15:41 GMT+09:00 Nick Hudson : > I'd be happy (as a tegra owner/user) to move hdmicec to 206. I don't think > hdmicec is use anywhere else yet. char 206 is already used by seeprom. - sys/conf/majors device-major seeprom char 206 seeprom - Regards, -- NONAKA Kimihiro

Re: MP-safe ifnet with psz & psref

2016-05-11 Thread Ryota Ozaki
Sorry for consecutive patches but one more patch is here: http://www.netbsd.org/~ozaki-r/if_get_byindex.diff The patch implements if_get_byindex that is if_byindex with psref. Same as if_get it's used together with if_put. The patch also replaces some if_byindex with it while some if_byindex are

Re: MP-safe ifnet with psz & psref

2016-05-11 Thread Ryota Ozaki
http://www.netbsd.org/~ozaki-r/psref-ifnet.diff One more update. Use IFNET_LOCK to protect whole if_getindex that updates global shared objects and retire index_gen_mtx that is used only for index_gen that is also updated in if_getindex. ozaki-r On Wed, May 11, 2016 at 10:03 AM, Ryota Ozaki