From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Date: Wed, 17 Oct 2018 02:43:08 -0700 Subject: [Cluster-devel] [GFS2 PATCH 4/4] gfs2: read journal in large chunks to locate the head In-Reply-To: <1539662878-13664-5-git-send-email-adas@redhat.com> References: <1539662878-13664-1-git-send-email-adas@redhat.com> <1539662878-13664-5-git-send-email-adas@redhat.com> Message-ID: <20181017094308.GA18118@infradead.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit > +/** > + * gfs2_end_log_read - end I/O callback for reads from the log > + * @bio: The bio > + * > + * Simply unlock the pages in the bio. The main thread will wait on them and > + * process them in order as necessary. > + */ > + > +static void gfs2_end_log_read(struct bio *bio) > +{ > + struct gfs2_sbd *sdp = bio->bi_private; > + struct page *page; > + struct bio_vec *bvec; > + int i; > + > + if (bio->bi_status) > + fs_err(sdp, "Error %d reading from journal\n", bio->bi_status); How is error handling forthis going to work? > + bio_set_op_attrs(bio, REQ_OP_READ, 0); Please assign to bi_opf directly instead of using bio_set_op_attrs.