Re: [PATCH] bcache: explicitly destory mutex while exiting

2017-05-04 Thread Coly Li
On 2017/5/2 下午4:09, Liang Chen wrote: > mutex_destroy does nothing most of time, but it's better to call > it to make the code future proof and it also has some meaning > for like mutex debug. > Hi Liang, Could you please explain a little bit more about how mutex_destroy() helps to future proof

Re: [PATCH] bcache: explicitly destory mutex while exiting

2017-05-04 Thread Coly Li
On 2017/5/2 下午4:09, Liang Chen wrote: > mutex_destroy does nothing most of time, but it's better to call > it to make the code future proof and it also has some meaning > for like mutex debug. > Hi Liang, Could you please explain a little bit more about how mutex_destroy() helps to future proof

[PATCH] bcache: explicitly destory mutex while exiting

2017-05-02 Thread Liang Chen
mutex_destroy does nothing most of time, but it's better to call it to make the code future proof and it also has some meaning for like mutex debug. Signed-off-by: Liang Chen --- drivers/md/bcache/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH] bcache: explicitly destory mutex while exiting

2017-05-02 Thread Liang Chen
mutex_destroy does nothing most of time, but it's better to call it to make the code future proof and it also has some meaning for like mutex debug. Signed-off-by: Liang Chen --- drivers/md/bcache/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/md/bcache/super.c