RFC Cleanup init_MUTEX[_LOCKED] / DECLARE_MUTEX
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest37 patches 22 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/37 | semaphore: Add DEFINE_SEMAPHORE, semaphore_init, semaphore_init_lockedinclude/ | +17 | 4 replies | |
| 2/37 | input: keyboard/hil_kbd: semaphore cleanupdrivers/ | +1 | 1 reply | |
| 3/37 | input: misc/hp_sdc_rtc: semaphore cleanupdrivers/ | +2 | 0 replies | |
| 4/37 | input: mouse/hil_ptr: semaphore cleanupdrivers/ | +1 | 0 replies | |
| 5/37 | input: serio/hil_mlc: semaphore cleanupdrivers/ | +3 | 0 replies | |
| 6/37 | input: serio/hp_sdc: semaphore cleanupdrivers/ | +1 | 0 replies | |
| 7/37 | net: 3c527: semaphore cleanupdrivers/ | +1 | 0 replies | |
| 8/37 | hamradio: 6pack: semaphore cleanupdrivers/ | +1 | 0 replies | |
| 9/37 | hamradio: mkiss: semaphore cleanupdrivers/ | +1 | 0 replies | |
| 10/37 | net: ppp_async: semaphore cleanupdrivers/ | +1 | 0 replies | |
| 11/37 | parport: semaphore cleanupdrivers/ | +1 | 0 replies | |
| 12/37 | ibmphp-hpc: semaphore cleanupdrivers/ | +2 | 0 replies | |
| 13/37 | s390: cio/crw: semaphore cleanupdrivers/ | +1 | 1 reply | |
| 14/37 | scsi: aacraid semaphore cleanupdrivers/ drivers/ | +2 | 2 replies | |
| 15/37 | bluetooth: Convert hdev->req_lock to mutexinclude/ net/ | +4 | 2 replies | |
| 16/37 | smbfs: Convert server->sem to mutexfs/ include/ | +5 | 0 replies | |
| 17/37 | hpfs: Convert sbi->hpfs_creation_de to mutexfs/ fs/ fs/ | +4 | 0 replies | |
| 18/37 | hpfsplus: Convert tree_lock to mutexfs/ fs/ fs/ | +4 | 0 replies | |
| 19/37 | hfs: Convert tree_lock to mutexfs/ fs/ fs/ | +4 | 0 replies | |
| 20/37 | cifs: convert semaphore to mutexfs/ fs/ fs/ +1 more | +15 | 3 replies | |
| 21/37 | affs: use semaphore_init instead of init_MUTEXfs/ | +2 | 1 reply | |
| 22/37 | usb: ftdi-elan: Convert "mutex" to semaphoredrivers/ | +1 | 0 replies | |
| 23/37 | usb: gadgetfs: Convert semaphore to mutexdrivers/ | +21 | 1 reply | |
| 24/37 | xfs: semaphore cleanupfs/ | +1 | 1 reply | |
| 25/37 | net: wan/cosa.c: Convert "mutex" to semaphoredrivers/ | +1 | 0 replies | |
| 26/37 | irda: semaphore cleanupdrivers/ | +1 | 0 replies | |
| 27/37 | mmc: Convert "mutex" to semaphoredrivers/ | +1 | 0 replies | |
| 28/37 | dvb: Convert "mutex" to semaphoredrivers/ | +2 | 0 replies | |
| 29/37 | infiniband: Make user_mad semaphore a real onedrivers/ | +1 | 2 replies | |
| 30/37 | drivers/base: Convert dev->sem to mutexdrivers/ drivers/ drivers/ +12 more | +64 | 0 replies | |
| 31/37 | ia64: salinfo: semaphore_init instead of init_MUTEXarch/ | +1 | 0 replies | |
| 32/37 | drivers/macintosh/adb: Do not claim that the semaphore is a mutexdrivers/ | +1 | 0 replies | |
| 33/37 | arm: w90x900: convert semaphore to mutexarch/ | +7 | 1 reply | |
| 34/37 | printk: Make console_sem a semaphore not a pseudo mutexkernel/ | +2 | 0 replies | |
| 35/37 | staging: Bulk convert the semaphore messdrivers/ drivers/ drivers/ +14 more | +23 | 0 replies | |
| 36/37 | fs: Convert bd_mount_sem to mutexfs/ fs/ include/ | +7 | 3 replies | |
| 37/37 | semaphore: Remove mutex emulationinclude/ scripts/ | +3 | 0 replies |
Reviews trailers per patch
4 of 37 patches have a Reviewed-by or Acked-by.
| Patch | Marcel Holtmann | Jeff Layton | Wan ZongShun | Martin Schwidefsky |
|---|---|---|---|---|
| 1/37 | ||||
| 2/37 | ||||
| 3/37 | ||||
| 4/37 | ||||
| 5/37 | ||||
| 6/37 | ||||
| 7/37 | ||||
| 8/37 | ||||
| 9/37 | ||||
| 10/37 | ||||
| 11/37 | ||||
| 12/37 | ||||
| 13/37 | A-b | |||
| 14/37 | ||||
| 15/37 | A-b | |||
| 16/37 | ||||
| 17/37 | ||||
| 18/37 | ||||
| 19/37 | ||||
| 20/37 | A-b | |||
| 21/37 | ||||
| 22/37 | ||||
| 23/37 | ||||
| 24/37 | ||||
| 25/37 | ||||
| 26/37 | ||||
| 27/37 | ||||
| 28/37 | ||||
| 29/37 | ||||
| 30/37 | ||||
| 31/37 | ||||
| 32/37 | ||||
| 33/37 | A-b | |||
| 34/37 | ||||
| 35/37 | ||||
| 36/37 | ||||
| 37/37 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [Patch RFC 00/37] Cleanup init_MUTEX[_LOCKED] / DECLARE_MUTEX
There are still semaphores left which are used as mutexes. Many of them are not mutexes; they are used as completions and serialization object at the same time. Some others are simple mutexes and nobody bothered to clean them up.
Most of the cases have been identified in the preempt-rt patch. The conversion to mutexes has been tested with both lockdep and mutex debugging for quite a time. The other semaphore style users are simply converted to semaphores and the init_MUTEX[_LOCKED] / DECLARE_MUTEX confusion is removed.
Andrew: it would be great if we could merge the infrastructure patch [1/n] right away. It does not change any code as it just adds DEFINE_SEMAPHORE, semaphore_init() and semaphore_init_locked(). The latter is marked deprecated as well as the locked init usually points to a completion like use case. Merging it now would allow the maintainers to queue up the cleanup patches for .32
Thanks,
tglx