From: Bart Van Assche <bvanassche@acm.org>
To: YangYang <yang.yang@vivo.com>, Yu Kuai <yukuai1@huaweicloud.com>
Cc: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
"yukuai (C)" <yukuai3@huawei.com>
Subject: Re: [PATCH] block: fix deadlock between sd_remove & sd_release
Date: Wed, 17 Jul 2024 09:23:19 -0700 [thread overview]
Message-ID: <e7c95d49-d279-451c-9bd0-3f4009c7afcd@acm.org> (raw)
In-Reply-To: <51411297-f579-4229-a72c-c5bd5f27df34@vivo.com>
On 7/17/24 3:15 AM, YangYang wrote:
> These sysfs nodes are in different directories, the scsi node located
> at /sys/bus/scsi/devices/0:0:0:0 and the gendisk node located at
> /sys/block/sda. Would it be necessary to wait for the completion of
> the scsi sysfs nodes' read/write operations before removing the
> gendisk sysfs node?
No. sysfs_remove_files() waits for pending read and write operations to
complete.
Bart.
next prev parent reply other threads:[~2024-07-17 16:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-16 8:38 Yang Yang
2024-07-16 9:15 ` Yu Kuai
2024-07-16 9:30 ` YangYang
2024-07-17 3:53 ` Yu Kuai
2024-07-17 10:15 ` YangYang
2024-07-17 16:23 ` Bart Van Assche [this message]
2024-07-19 3:15 ` Yu Kuai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e7c95d49-d279-451c-9bd0-3f4009c7afcd@acm.org \
--to=bvanassche@acm.org \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yang.yang@vivo.com \
--cc=yukuai1@huaweicloud.com \
--cc=yukuai3@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®